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

Function TestDecoderSkipEscapedStringError

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

Source from the content-addressed store, hash-verified

679}
680
681func TestDecoderSkipEscapedStringError(t *testing.T) {
682 dec := NewDecoder(strings.NewReader(``))
683 defer dec.Release()
684 err := dec.skipEscapedString()
685 assert.NotNil(t, err, "Err must be nil")
686 assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError")
687}
688
689func TestDecoderSkipEscapedStringError2(t *testing.T) {
690 dec := NewDecoder(strings.NewReader(`\"`))

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…