MCPcopy Index your code
hub / github.com/bitfield/script / TestCountLines_Counts0LinesInEmptyInput

Function TestCountLines_Counts0LinesInEmptyInput

script_test.go:1549–1559  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1547}
1548
1549func 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
1561func TestCountLines_ReturnsErrorGivenReadErrorOnPipe(t *testing.T) {
1562 t.Parallel()

Callers

nothing calls this directly

Calls 2

EchoFunction · 0.92
CountLinesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…