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

Function TestRemoval2_TokenEnd_NoDelimiter

dead_code_audit_test.go:100–106  ·  view source on GitHub ↗

Verifies: SYS-REQ-044 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

98
99// Verifies: SYS-REQ-044 [boundary]
100func TestRemoval2_TokenEnd_NoDelimiter(t *testing.T) {
101 // Input with no delimiter characters at all
102 result := tokenEnd([]byte("12345"))
103 if result != 5 {
104 t.Fatalf("tokenEnd(12345) = %d, want 5 (len)", result)
105 }
106}
107
108// Verifies: SYS-REQ-044 [boundary]
109func TestRemoval2_TokenEnd_NeverReturnsNegative(t *testing.T) {

Callers

nothing calls this directly

Calls 1

tokenEndFunction · 0.85

Tested by

no test coverage detected