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

Function TestDecoderSkipEscapedStringError4

decode_string_test.go:705–711  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

703}
704
705func TestDecoderSkipEscapedStringError4(t *testing.T) {
706 dec := NewDecoder(strings.NewReader(`\u12`))
707 defer dec.Release()
708 err := dec.skipEscapedString()
709 assert.NotNil(t, err, "Err must be nil")
710 assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError")
711}
712
713func TestDecoderSkipStringError(t *testing.T) {
714 dec := NewDecoder(strings.NewReader(`invalid`))

Callers

nothing calls this directly

Calls 4

ReleaseMethod · 0.95
skipEscapedStringMethod · 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…