(t *testing.T)
| 1559 | } |
| 1560 | |
| 1561 | func TestCountLines_ReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1562 | t.Parallel() |
| 1563 | brokenReader := iotest.ErrReader(errors.New("oh no")) |
| 1564 | _, err := script.NewPipe().WithReader(brokenReader).CountLines() |
| 1565 | if err == nil { |
| 1566 | t.Fatal(nil) |
| 1567 | } |
| 1568 | } |
| 1569 | |
| 1570 | func TestSHA256Sum_OutputsCorrectHash(t *testing.T) { |
| 1571 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…