(t *testing.T)
| 636 | } |
| 637 | |
| 638 | func Test_sanitizedReader(t *testing.T) { |
| 639 | input := strings.NewReader("\t hello \x1B[m world! ăѣ𝔠ծề\r\n") |
| 640 | expected := "\t hello ^[[m world! ăѣ𝔠ծề\r\n" |
| 641 | |
| 642 | err := iotest.TestReader(sanitizedReader(input), []byte(expected)) |
| 643 | if err != nil { |
| 644 | t.Error(err) |
| 645 | } |
| 646 | } |
nothing calls this directly
no test coverage detected