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

Function TestDecoderSkipEscapedStringError2

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

Source from the content-addressed store, hash-verified

687}
688
689func TestDecoderSkipEscapedStringError2(t *testing.T) {
690 dec := NewDecoder(strings.NewReader(`\"`))
691 defer dec.Release()
692 err := dec.skipEscapedString()
693 assert.NotNil(t, err, "Err must be nil")
694 assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError")
695}
696
697func TestDecoderSkipEscapedStringError3(t *testing.T) {
698 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…