File tree 2 files changed +11
-11
lines changed
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) {
343
343
}
344
344
}
345
345
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
-
357
346
func TestFilterByCopyPassesInputThroughUnchanged (t * testing.T ) {
358
347
t .Parallel ()
359
348
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 (
9
9
"github.com/google/go-cmp/cmp"
10
10
)
11
11
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
+
12
23
func TestExecRunsShWithEchoHelloAndGetsOutputHello (t * testing.T ) {
13
24
t .Parallel ()
14
25
p := script .Exec ("sh -c 'echo hello'" )
You can’t perform that action at this time.
0 commit comments