MCPcopy Create free account
hub / github.com/francoispqt/gojay / TestDecoderObjectDecoderInvalidJSONError4

Function TestDecoderObjectDecoderInvalidJSONError4

decode_object_test.go:1738–1744  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1736}
1737
1738func 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
1746func TestDecoderObjectPoolError(t *testing.T) {
1747 result := jsonDecodePartial{}

Callers

nothing calls this directly

Calls 3

DecodeArrayMethod · 0.95
NewDecoderFunction · 0.85
InvalidJSONErrorTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…