(t *testing.T)
| 2187 | } |
| 2188 | |
| 2189 | func TestSetConfigNameClearsFileCache(t *testing.T) { |
| 2190 | v := New() |
| 2191 | v.SetConfigFile("/tmp/config.yaml") |
| 2192 | v.SetConfigName("default") |
| 2193 | f, err := v.getConfigFile() |
| 2194 | require.Error(t, err, "config file cache should have been cleared") |
| 2195 | assert.Empty(t, f) |
| 2196 | } |
| 2197 | |
| 2198 | func TestShadowedNestedValue(t *testing.T) { |
| 2199 | v := New() |
nothing calls this directly
no test coverage detected