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

Function TestCodeMCDC_TokenStartNewline

mcdc_code_supplement_test.go:92–98  ·  view source on GitHub ↗

Verifies: SYS-REQ-001 [mcdc]

(t *testing.T)

Source from the content-addressed store, hash-verified

90
91// Verifies: SYS-REQ-001 [mcdc]
92func TestCodeMCDC_TokenStartNewline(t *testing.T) {
93 // Leading '\n' before the value exercises the c != 10 short-circuit gap
94 // in tokenStart (parser.go:173).
95 if _, _, _, err := Get([]byte("\n{\"a\":1}"), "a"); err != nil {
96 t.Fatalf("Get returned error: %v", err)
97 }
98}
99
100// Verifies: SYS-REQ-001 [mcdc]
101func TestCodeMCDC_TokenStartCarriageReturn(t *testing.T) {

Callers

nothing calls this directly

Calls 1

GetFunction · 0.85

Tested by

no test coverage detected