(t *testing.T)
| 568 | } |
| 569 | |
| 570 | func Test_sanitizedReader(t *testing.T) { |
| 571 | input := strings.NewReader("\t hello \x1B[m world! ăѣ𝔠ծề\r\n") |
| 572 | expected := "\t hello \\u{1b}[m world! ăѣ𝔠ծề\r\n" |
| 573 | |
| 574 | err := iotest.TestReader(sanitizedReader(input), []byte(expected)) |
| 575 | if err != nil { |
| 576 | t.Error(err) |
| 577 | } |
| 578 | } |
nothing calls this directly
no test coverage detected