(t *testing.T)
| 1683 | } |
| 1684 | |
| 1685 | func TestStringReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1686 | t.Parallel() |
| 1687 | brokenReader := iotest.ErrReader(errors.New("oh no")) |
| 1688 | _, err := script.NewPipe().WithReader(brokenReader).String() |
| 1689 | if err == nil { |
| 1690 | t.Fatal(nil) |
| 1691 | } |
| 1692 | } |
| 1693 | |
| 1694 | func TestWaitReadsPipeSourceToCompletion(t *testing.T) { |
| 1695 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…