(t *testing.T)
| 359 | } |
| 360 | |
| 361 | func TestMapObjectEncoderReflectionFailures(t *testing.T) { |
| 362 | enc := NewMapObjectEncoder() |
| 363 | assert.Error(t, enc.AddObject("object", loggable{false}), "Expected AddObject to fail.") |
| 364 | assert.Equal( |
| 365 | t, |
| 366 | map[string]interface{}{"object": map[string]interface{}{}}, |
| 367 | enc.Fields, |
| 368 | "Expected encoder to use empty values on errors.", |
| 369 | ) |
| 370 | } |
nothing calls this directly
no test coverage detected