File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -343,17 +343,6 @@ func TestExecForEach_ErrorsOnUnbalancedQuotes(t *testing.T) {
343343 }
344344}
345345
346- func TestExecForEach_HandlesLongLines (t * testing.T ) {
347- t .Parallel ()
348- got , err := script .Echo (longLine ).ExecForEach (`echo "{{.}}"` ).String ()
349- if err != nil {
350- t .Fatal (err )
351- }
352- if longLine != got {
353- t .Error (cmp .Diff (longLine , got ))
354- }
355- }
356-
357346func TestFilterByCopyPassesInputThroughUnchanged (t * testing.T ) {
358347 t .Parallel ()
359348 p := script .Echo ("hello" ).Filter (func (r io.Reader , w io.Writer ) error {
Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ import (
99 "github.com/google/go-cmp/cmp"
1010)
1111
12+ func TestExecForEach_HandlesLongLines (t * testing.T ) {
13+ t .Parallel ()
14+ got , err := script .Echo (longLine ).ExecForEach (`echo "{{.}}"` ).String ()
15+ if err != nil {
16+ t .Fatal (err )
17+ }
18+ if longLine != got {
19+ t .Error (cmp .Diff (longLine , got ))
20+ }
21+ }
22+
1223func TestExecRunsShWithEchoHelloAndGetsOutputHello (t * testing.T ) {
1324 t .Parallel ()
1425 p := script .Exec ("sh -c 'echo hello'" )
You can’t perform that action at this time.
0 commit comments