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

Function TestDecoderSkipStringError

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

Source from the content-addressed store, hash-verified

711}
712
713func TestDecoderSkipStringError(t *testing.T) {
714 dec := NewDecoder(strings.NewReader(`invalid`))
715 defer dec.Release()
716 err := dec.skipString()
717 assert.NotNil(t, err, "Err must be nil")
718 assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError")
719}
720
721func TestSkipString(t *testing.T) {
722 testCases := []struct {

Callers

nothing calls this directly

Calls 4

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