(t *testing.T)
| 1547 | } |
| 1548 | |
| 1549 | func TestCountLines_Counts0LinesInEmptyInput(t *testing.T) { |
| 1550 | t.Parallel() |
| 1551 | want := 0 |
| 1552 | got, err := script.Echo("").CountLines() |
| 1553 | if err != nil { |
| 1554 | t.Fatal(err) |
| 1555 | } |
| 1556 | if got != want { |
| 1557 | t.Errorf("want %d, got %d", want, got) |
| 1558 | } |
| 1559 | } |
| 1560 | |
| 1561 | func TestCountLines_ReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1562 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…