Verifies: SYS-REQ-001 [mcdc]
(t *testing.T)
| 90 | |
| 91 | // Verifies: SYS-REQ-001 [mcdc] |
| 92 | func 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] |
| 101 | func TestCodeMCDC_TokenStartCarriageReturn(t *testing.T) { |