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

Function TestHelperProcess

pkg/iostreams/iostreams_test.go:49–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestHelperProcess(t *testing.T) {
50 if os.Getenv("GH_WANT_HELPER_PROCESS") != "1" {
51 return
52 }
53 scanner := bufio.NewScanner(os.Stdin)
54 for scanner.Scan() {
55 fmt.Printf("pager: %s\n", scanner.Text())
56 }
57 if err := scanner.Err(); err != nil {
58 fmt.Fprintf(os.Stderr, "error reading stdin: %v", err)
59 os.Exit(1)
60 }
61 os.Exit(0)
62}

Callers

nothing calls this directly

Calls 2

ErrMethod · 0.80
PrintfMethod · 0.65

Tested by

no test coverage detected