(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestReadConfigError(t *testing.T) { |
| 9 | defer func() { |
| 10 | if r := recover(); r == nil { |
| 11 | t.Errorf("The code did not panic") |
| 12 | } |
| 13 | }() |
| 14 | |
| 15 | ReadConfig("unknown_path") |
| 16 | } |
| 17 | |
| 18 | func TestConfigValue(t *testing.T) { |
| 19 | viper.AddConfigPath("./test-fixtures") |
nothing calls this directly
no test coverage detected