()
| 2623 | } |
| 2624 | |
| 2625 | func ExamplePipe_WithStderr() { |
| 2626 | buf := new(bytes.Buffer) |
| 2627 | script.NewPipe().WithStderr(buf).Exec("go").Wait() |
| 2628 | fmt.Println(strings.Contains(buf.String(), "Usage")) |
| 2629 | // Output: |
| 2630 | // true |
| 2631 | } |
| 2632 | |
| 2633 | func ExampleSlice() { |
| 2634 | input := []string{"1", "2", "3"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…