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

Function TestCodeMCDC_TokenEndDirect

mcdc_code_supplement_test.go:45–51  ·  view source on GitHub ↗

Verifies: SYS-REQ-001 [mcdc]

(t *testing.T)

Source from the content-addressed store, hash-verified

43
44// Verifies: SYS-REQ-001 [mcdc]
45func TestCodeMCDC_TokenEndDirect(t *testing.T) {
46 // tokenEnd scans forward looking for a delimiter. Drive the c != 9
47 // (TAB) operand as the independent flipper.
48 if got := tokenEnd([]byte("abc\t")); got != 3 {
49 t.Errorf("tokenEnd(abc\\t) = %d, want 3", got)
50 }
51}
52
53// -----------------------------------------------------------------------------
54// lastToken / tokenStart / tokenEnd — drive each whitespace branch.

Callers

nothing calls this directly

Calls 1

tokenEndFunction · 0.85

Tested by

no test coverage detected