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

Function TestRemoval7_NextToken_EmptyInput

dead_code_audit_test.go:537–542  ·  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

535
536// Verifies: SYS-REQ-001 [boundary]
537func TestRemoval7_NextToken_EmptyInput(t *testing.T) {
538 result := nextToken([]byte{})
539 if result != -1 {
540 t.Fatalf("nextToken([]) = %d, expected -1", result)
541 }
542}
543
544// Verifies: SYS-REQ-001 [boundary]
545func TestRemoval7_NextToken_WhitespaceOnly(t *testing.T) {

Callers

nothing calls this directly

Calls 1

nextTokenFunction · 0.85

Tested by

no test coverage detected