MCPcopy Create free account
hub / github.com/buger/jsonparser / TestReaderParserEmpty

Function TestReaderParserEmpty

reader_parser_test.go:222–227  ·  view source on GitHub ↗

Verifies: SYS-REQ-116 (empty input) SYS-REQ-116:empty_input:nominal reqproof:proptest:skip targeted empty-stream witness

(t *testing.T)

Source from the content-addressed store, hash-verified

220// SYS-REQ-116:empty_input:nominal
221// reqproof:proptest:skip targeted empty-stream witness
222func TestReaderParserEmpty(t *testing.T) {
223 rp := NewReaderParser(bytes.NewReader(nil))
224 if _, vt, err := rp.Get("key"); !errors.Is(err, KeyPathNotFoundError) || vt != NotExist {
225 t.Fatalf("empty Get = type %v, error %v; want NotExist, KeyPathNotFoundError", vt, err)
226 }
227}
228
229type repeatedByteReader struct {
230 remaining int64

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
NewReaderParserFunction · 0.85

Tested by

no test coverage detected