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

Function TestDecoderSkipEscapedStringError3

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

Source from the content-addressed store, hash-verified

695}
696
697func TestDecoderSkipEscapedStringError3(t *testing.T) {
698 dec := NewDecoder(strings.NewReader(`invalid`))
699 defer dec.Release()
700 err := dec.skipEscapedString()
701 assert.NotNil(t, err, "Err must be nil")
702 assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError")
703}
704
705func TestDecoderSkipEscapedStringError4(t *testing.T) {
706 dec := NewDecoder(strings.NewReader(`\u12`))

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…