MCPcopy
hub / github.com/buger/jsonparser / TestRemoval7_NextToken_EmptyInput

Function TestRemoval7_NextToken_EmptyInput

dead_code_audit_test.go:531–536  ·  view source on GitHub ↗

============================================================================= REMOVAL 7: `ln > 0` guard removed in findKeyStart Verify nextToken returning non-negative guarantees len(data) > 0 ============================================================================= Verifies: SYS-REQ-001 [bounda

(t *testing.T)

Source from the content-addressed store, hash-verified

529
530// Verifies: SYS-REQ-001 [boundary]
531func TestRemoval7_NextToken_EmptyInput(t *testing.T) {
532 result := nextToken([]byte{})
533 if result != -1 {
534 t.Fatalf("nextToken([]) = %d, expected -1", result)
535 }
536}
537
538// Verifies: SYS-REQ-001 [boundary]
539func TestRemoval7_NextToken_WhitespaceOnly(t *testing.T) {

Callers

nothing calls this directly

Calls 1

nextTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…