(t *testing.T)
| 1736 | } |
| 1737 | |
| 1738 | func TestDecoderObjectDecoderInvalidJSONError4(t *testing.T) { |
| 1739 | testArr := testSliceInts{} |
| 1740 | dec := NewDecoder(strings.NewReader(`hello`)) |
| 1741 | err := dec.DecodeArray(&testArr) |
| 1742 | assert.NotNil(t, err, "Err must not be nil as JSON is invalid") |
| 1743 | assert.IsType(t, InvalidJSONError(""), err, "err message must be 'Invalid JSON'") |
| 1744 | } |
| 1745 | |
| 1746 | func TestDecoderObjectPoolError(t *testing.T) { |
| 1747 | result := jsonDecodePartial{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…