(t *testing.T)
| 1526 | } |
| 1527 | |
| 1528 | func TestBytesReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1529 | t.Parallel() |
| 1530 | brokenReader := iotest.ErrReader(errors.New("oh no")) |
| 1531 | _, err := script.NewPipe().WithReader(brokenReader).Bytes() |
| 1532 | if err == nil { |
| 1533 | t.Fatal(nil) |
| 1534 | } |
| 1535 | } |
| 1536 | |
| 1537 | func TestCountLines_CountsCorrectNumberOfLinesInInput(t *testing.T) { |
| 1538 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…