Verifies: SYS-REQ-014 [boundary]
(t *testing.T)
| 36 | |
| 37 | // Verifies: SYS-REQ-014 [boundary] |
| 38 | func 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] |
| 49 | func TestRemoval1_Unescape_LoopExitsOnTrailingEscape(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…