(t *gotesting.T)
| 186 | } |
| 187 | |
| 188 | func TestKoanfAdapter_Reload(t *gotesting.T) { |
| 189 | t.Parallel() |
| 190 | conf, err := NewConfig( |
| 191 | WithValidators(func(data map[string]interface{}) error { |
| 192 | return errors.New("bad config") |
| 193 | }), |
| 194 | ) |
| 195 | assert.Error(t, err) |
| 196 | assert.Nil(t, conf) |
| 197 | } |
| 198 | |
| 199 | func TestUpgrade(t *gotesting.T) { |
| 200 | var m MapAdapter = map[string]interface{}{"foo": "bar"} |
nothing calls this directly
no test coverage detected