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

Function TestRemoval2_TokenEnd_EmptyInput

dead_code_audit_test.go:91–96  ·  view source on GitHub ↗

============================================================================= REMOVAL 2: `end == -1` guard removed in getType tokenEnd returns len(data) instead of -1. Verify behavior for edge cases. ============================================================================= Verifies: SYS-REQ-044

(t *testing.T)

Source from the content-addressed store, hash-verified

89
90// Verifies: SYS-REQ-044 [boundary]
91func TestRemoval2_TokenEnd_EmptyInput(t *testing.T) {
92 result := tokenEnd([]byte{})
93 if result != 0 {
94 t.Fatalf("tokenEnd([]) = %d, want 0", result)
95 }
96}
97
98// Verifies: SYS-REQ-044 [boundary]
99func TestRemoval2_TokenEnd_NoDelimiter(t *testing.T) {

Callers

nothing calls this directly

Calls 1

tokenEndFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…