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

Function TestRemoval1_Unescape_LoopExitsOnTrailingEscape

dead_code_audit_test.go:49–57  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

47
48// Verifies: SYS-REQ-014 [boundary]
49func TestRemoval1_Unescape_LoopExitsOnTrailingEscape(t *testing.T) {
50 out, err := Unescape([]byte(`\n`), make([]byte, 64))
51 if err != nil {
52 t.Fatalf("unexpected error: %v", err)
53 }
54 if string(out) != "\n" {
55 t.Fatalf("unexpected result: %q", out)
56 }
57}
58
59// Verifies: SYS-REQ-007 [boundary]
60func TestRemoval1_ObjectEach_LoopExitsOnEmptyObject(t *testing.T) {

Callers

nothing calls this directly

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…