MCPcopy Create free account
hub / github.com/cli/cli / Test_sanitizedReader

Function Test_sanitizedReader

pkg/cmd/pr/diff/diff_test.go:638–646  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

636}
637
638func 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}

Callers

nothing calls this directly

Calls 2

sanitizedReaderFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected