(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestGetStorageAccountKeyInEnv(t *testing.T) { |
| 53 | cfg := Config{} |
| 54 | os.Setenv("AZURE_STORAGE_KEY", TestStorageAccountKey) |
| 55 | defer os.Unsetenv("AZURE_STORAGE_KEY") |
| 56 | |
| 57 | actual := getStorageAccountKey(&cfg) |
| 58 | assert.Equal(t, TestStorageAccountKey, actual) |
| 59 | } |
| 60 | |
| 61 | func TestGetStorageAccountKeyNotSet(t *testing.T) { |
| 62 | cfg := Config{} |
nothing calls this directly
no test coverage detected