(t *testing.T)
| 1712 | } |
| 1713 | |
| 1714 | func TestDecoderObjectDecoderInvalidJSONError(t *testing.T) { |
| 1715 | v := &TestObj{} |
| 1716 | dec := NewDecoder(strings.NewReader(`{"err:}`)) |
| 1717 | err := dec.DecodeObject(v) |
| 1718 | assert.NotNil(t, err, "Err must not be nil as JSON is invalid") |
| 1719 | assert.IsType(t, InvalidJSONError(""), err, "err message must be 'Invalid JSON'") |
| 1720 | } |
| 1721 | |
| 1722 | func TestDecoderObjectDecoderInvalidJSONError2(t *testing.T) { |
| 1723 | v := &TestSubObj{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…