Verifies: SYS-REQ-014 [boundary]
(t *testing.T)
| 37 | |
| 38 | // Verifies: SYS-REQ-014 [boundary] |
| 39 | func TestRemoval1_Unescape_LoopExitsOnSingleEscape(t *testing.T) { |
| 40 | out, err := Unescape([]byte(`hello\nworld`), make([]byte, 64)) |
| 41 | if err != nil { |
| 42 | t.Fatalf("unexpected error: %v", err) |
| 43 | } |
| 44 | if string(out) != "hello\nworld" { |
| 45 | t.Fatalf("unexpected result: %q", out) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // Verifies: SYS-REQ-014 [boundary] |
| 50 | func TestRemoval1_Unescape_LoopExitsOnTrailingEscape(t *testing.T) { |
nothing calls this directly
no test coverage detected