(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestGetStorageAccountNameInEnv(t *testing.T) { |
| 27 | cfg := Config{} |
| 28 | os.Setenv("AZURE_STORAGE_ACCOUNT", TestStorageAccountName) |
| 29 | defer os.Unsetenv("AZURE_STORAGE_ACCOUNT") |
| 30 | |
| 31 | actual := getStorageAccountName(&cfg) |
| 32 | assert.Equal(t, TestStorageAccountName, actual) |
| 33 | } |
| 34 | |
| 35 | func TestGetStorageAccountNameNotSet(t *testing.T) { |
| 36 | cfg := Config{} |
nothing calls this directly
no test coverage detected