@@ -432,7 +432,7 @@ func (s ErrorStartingStage) Name() string {
432432}
433433
434434func (s ErrorStartingStage ) Start (
435- ctx context.Context , env pipe.Env , stdin io.ReadCloser ,
435+ _ context.Context , _ pipe.Env , _ io.ReadCloser ,
436436) (io.ReadCloser , error ) {
437437 return io .NopCloser (& bytes.Buffer {}), s .err
438438}
@@ -854,7 +854,7 @@ func BenchmarkTenFunctions(b *testing.B) {
854854
855855 dir := b .TempDir ()
856856
857- copy := func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
857+ cp := func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
858858 _ , err := io .Copy (stdout , stdin )
859859 return err
860860 }
@@ -863,15 +863,15 @@ func BenchmarkTenFunctions(b *testing.B) {
863863 p := pipe .New (pipe .WithDir (dir ))
864864 p .Add (
865865 pipe .Println ("hello world" ),
866- pipe .Function ("copy1" , copy ),
867- pipe .Function ("copy2" , copy ),
868- pipe .Function ("copy3" , copy ),
869- pipe .Function ("copy4" , copy ),
870- pipe .Function ("copy5" , copy ),
871- pipe .Function ("copy6" , copy ),
872- pipe .Function ("copy7" , copy ),
873- pipe .Function ("copy8" , copy ),
874- pipe .Function ("copy9" , copy ),
866+ pipe .Function ("copy1" , cp ),
867+ pipe .Function ("copy2" , cp ),
868+ pipe .Function ("copy3" , cp ),
869+ pipe .Function ("copy4" , cp ),
870+ pipe .Function ("copy5" , cp ),
871+ pipe .Function ("copy6" , cp ),
872+ pipe .Function ("copy7" , cp ),
873+ pipe .Function ("copy8" , cp ),
874+ pipe .Function ("copy9" , cp ),
875875 )
876876 out , err := p .Output (ctx )
877877 if assert .NoError (b , err ) {
@@ -885,7 +885,7 @@ func BenchmarkTenMixedStages(b *testing.B) {
885885
886886 dir := b .TempDir ()
887887
888- copy := func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
888+ cp := func (_ context.Context , _ pipe.Env , stdin io.Reader , stdout io.Writer ) error {
889889 _ , err := io .Copy (stdout , stdin )
890890 return err
891891 }
@@ -894,15 +894,15 @@ func BenchmarkTenMixedStages(b *testing.B) {
894894 p := pipe .New (pipe .WithDir (dir ))
895895 p .Add (
896896 pipe .Command ("echo" , "hello world" ),
897- pipe .Function ("copy1" , copy ),
897+ pipe .Function ("copy1" , cp ),
898898 pipe .Command ("cat" ),
899- pipe .Function ("copy2" , copy ),
899+ pipe .Function ("copy2" , cp ),
900900 pipe .Command ("cat" ),
901- pipe .Function ("copy3" , copy ),
901+ pipe .Function ("copy3" , cp ),
902902 pipe .Command ("cat" ),
903- pipe .Function ("copy4" , copy ),
903+ pipe .Function ("copy4" , cp ),
904904 pipe .Command ("cat" ),
905- pipe .Function ("copy5" , copy ),
905+ pipe .Function ("copy5" , cp ),
906906 )
907907 out , err := p .Output (ctx )
908908 if assert .NoError (b , err ) {
0 commit comments