(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestExecForEach_HandlesLongLines(t *testing.T) { |
| 15 | t.Parallel() |
| 16 | got, err := script.Echo(longLine).ExecForEach(`echo "{{.}}"`).String() |
| 17 | if err != nil { |
| 18 | t.Fatal(err) |
| 19 | } |
| 20 | if longLine != got { |
| 21 | t.Error(cmp.Diff(longLine, got)) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func TestExecRunsShWithEchoHelloAndGetsOutputHello(t *testing.T) { |
| 26 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…