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

Function TestRemoval1_Unescape_LoopExitsOnTrailingEscape

dead_code_audit_test.go:50–58  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected