(t *testing.T)
| 1720 | } |
| 1721 | |
| 1722 | func TestDecoderObjectDecoderInvalidJSONError2(t *testing.T) { |
| 1723 | v := &TestSubObj{} |
| 1724 | dec := NewDecoder(strings.NewReader(`{"err:}`)) |
| 1725 | err := dec.DecodeObject(v) |
| 1726 | assert.NotNil(t, err, "Err must not be nil as JSON is invalid") |
| 1727 | assert.IsType(t, InvalidJSONError(""), err, "err message must be 'Invalid JSON'") |
| 1728 | } |
| 1729 | |
| 1730 | func TestDecoderObjectDecoderInvalidJSONError3(t *testing.T) { |
| 1731 | v := &TestSubObj{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…