(t *testing.T)
| 1535 | } |
| 1536 | |
| 1537 | func TestCountLines_CountsCorrectNumberOfLinesInInput(t *testing.T) { |
| 1538 | t.Parallel() |
| 1539 | want := 3 |
| 1540 | got, err := script.Echo("a\nb\nc").CountLines() |
| 1541 | if err != nil { |
| 1542 | t.Fatal(err) |
| 1543 | } |
| 1544 | if got != want { |
| 1545 | t.Errorf("want %d, got %d", want, got) |
| 1546 | } |
| 1547 | } |
| 1548 | |
| 1549 | func TestCountLines_Counts0LinesInEmptyInput(t *testing.T) { |
| 1550 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…