(t *gotesting.T)
| 169 | } |
| 170 | |
| 171 | func TestMapAdapter_Unmarshal(t *gotesting.T) { |
| 172 | t.Parallel() |
| 173 | m := MapAdapter( |
| 174 | map[string]interface{}{ |
| 175 | "foo": map[string]interface{}{ |
| 176 | "bar": "baz", |
| 177 | }, |
| 178 | }, |
| 179 | ) |
| 180 | var target map[string]interface{} |
| 181 | err := m.Unmarshal("foo", &target) |
| 182 | assert.NoError(t, err) |
| 183 | assert.Equal(t, map[string]interface{}{ |
| 184 | "bar": "baz", |
| 185 | }, target) |
| 186 | } |
| 187 | |
| 188 | func TestKoanfAdapter_Reload(t *gotesting.T) { |
| 189 | t.Parallel() |
nothing calls this directly
no test coverage detected