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

Function TestRemoval1_Unescape_LoopExitsOnSingleEscape

dead_code_audit_test.go:38–46  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

36
37// Verifies: SYS-REQ-014 [boundary]
38func TestRemoval1_Unescape_LoopExitsOnSingleEscape(t *testing.T) {
39 out, err := Unescape([]byte(`hello\nworld`), make([]byte, 64))
40 if err != nil {
41 t.Fatalf("unexpected error: %v", err)
42 }
43 if string(out) != "hello\nworld" {
44 t.Fatalf("unexpected result: %q", out)
45 }
46}
47
48// Verifies: SYS-REQ-014 [boundary]
49func TestRemoval1_Unescape_LoopExitsOnTrailingEscape(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…