(t *testing.T)
| 336 | } |
| 337 | |
| 338 | func TestMapValueSourceStringer(t *testing.T) { |
| 339 | m := map[any]any{ |
| 340 | "foo": map[any]any{ |
| 341 | "bar": 10, |
| 342 | }, |
| 343 | } |
| 344 | mvs := NewMapValueSource("bar", NewMapSource("test", m)) |
| 345 | |
| 346 | assert.Equal(t, `&mapValueSource{key:"bar", src:&mapSource{name:"test"}}`, mvs.GoString()) |
| 347 | assert.Equal(t, `key "bar" from map source "test"`, mvs.String()) |
| 348 | } |
nothing calls this directly
no test coverage detected