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

Function TestDecoderObjectDecoderInvalidJSONError3

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

Source from the content-addressed store, hash-verified

1728}
1729
1730func TestDecoderObjectDecoderInvalidJSONError3(t *testing.T) {
1731 v := &TestSubObj{}
1732 dec := NewDecoder(strings.NewReader(`{"err":"test}`))
1733 err := dec.DecodeObject(v)
1734 assert.NotNil(t, err, "Err must not be nil as JSON is invalid")
1735 assert.IsType(t, InvalidJSONError(""), err, "err message must be 'Invalid JSON'")
1736}
1737
1738func TestDecoderObjectDecoderInvalidJSONError4(t *testing.T) {
1739 testArr := testSliceInts{}

Callers

nothing calls this directly

Calls 3

DecodeObjectMethod · 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…