MCPcopy Index your code
hub / github.com/cli/cli / Test_sanitizedReader

Function Test_sanitizedReader

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

Source from the content-addressed store, hash-verified

568}
569
570func 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}

Callers

nothing calls this directly

Calls 2

sanitizedReaderFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected