@@ -84,7 +84,7 @@ func TestImageLifecycle(t *testing.T) {
8484 Return (nil )
8585 return c
8686 },
87- op : func (t * testing.T ) integration.Operation {
87+ op : func (_ * testing.T ) integration.Operation {
8888 return integration.Operation {
8989 Inputs : property .NewMap (map [string ]property.Value {
9090 "push" : property .New (false ),
@@ -130,7 +130,7 @@ func TestImageLifecycle(t *testing.T) {
130130 {
131131 name : "tags are required when pushing" ,
132132 client : noClient ,
133- op : func (t * testing.T ) integration.Operation {
133+ op : func (_ * testing.T ) integration.Operation {
134134 return integration.Operation {
135135 Inputs : property .NewMap (map [string ]property.Value {
136136 "push" : property .New (false ),
@@ -159,7 +159,7 @@ func TestImageLifecycle(t *testing.T) {
159159 {
160160 name : "invalid exports" ,
161161 client : noClient ,
162- op : func (t * testing.T ) integration.Operation {
162+ op : func (_ * testing.T ) integration.Operation {
163163 return integration.Operation {
164164 Inputs : property .NewMap (map [string ]property.Value {
165165 "push" : property .New (false ),
@@ -192,7 +192,7 @@ func TestImageLifecycle(t *testing.T) {
192192 )
193193 return c
194194 },
195- op : func (t * testing.T ) integration.Operation {
195+ op : func (_ * testing.T ) integration.Operation {
196196 return integration.Operation {
197197 Inputs : property .NewMap (map [string ]property.Value {
198198 "push" : property .New (false ),
@@ -219,7 +219,7 @@ func TestImageLifecycle(t *testing.T) {
219219 )
220220 return c
221221 },
222- op : func (t * testing.T ) integration.Operation {
222+ op : func (_ * testing.T ) integration.Operation {
223223 return integration.Operation {
224224 Inputs : property .NewMap (map [string ]property.Value {
225225 "push" : property .New (false ),
@@ -252,7 +252,7 @@ func TestImageLifecycle(t *testing.T) {
252252 c .EXPECT ().Delete (gomock .Any (), "default-dockerfile" ).Return (nil )
253253 return c
254254 },
255- op : func (t * testing.T ) integration.Operation {
255+ op : func (_ * testing.T ) integration.Operation {
256256 return integration.Operation {
257257 Inputs : property .NewMap (map [string ]property.Value {
258258 "push" : property .New (false ),
@@ -294,7 +294,7 @@ func TestImageLifecycle(t *testing.T) {
294294 c .EXPECT ().Delete (gomock .Any (), "inline-dockerfile" ).Return (nil )
295295 return c
296296 },
297- op : func (t * testing.T ) integration.Operation {
297+ op : func (_ * testing.T ) integration.Operation {
298298 return integration.Operation {
299299 Inputs : property .NewMap (map [string ]property.Value {
300300 "push" : property .New (false ),
@@ -459,7 +459,7 @@ func TestImageDiff(t *testing.T) {
459459 is .Pull = true
460460 return is
461461 },
462- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
462+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
463463 ia .Pull = true
464464 return ia
465465 },
@@ -472,7 +472,7 @@ func TestImageDiff(t *testing.T) {
472472 is .Load = true
473473 return is
474474 },
475- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
475+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
476476 ia .Pull = true
477477 ia .Load = true
478478 return ia
@@ -534,7 +534,7 @@ func TestImageDiff(t *testing.T) {
534534 {
535535 name : "diff if pull changes" ,
536536 state : func (* testing.T , ImageState ) ImageState { return baseState },
537- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
537+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
538538 ia .Pull = true
539539 return ia
540540 },
@@ -543,7 +543,7 @@ func TestImageDiff(t *testing.T) {
543543 {
544544 name : "diff if load changes" ,
545545 state : func (* testing.T , ImageState ) ImageState { return baseState },
546- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
546+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
547547 ia .Load = true
548548 return ia
549549 },
@@ -552,7 +552,7 @@ func TestImageDiff(t *testing.T) {
552552 {
553553 name : "diff if push changes" ,
554554 state : func (* testing.T , ImageState ) ImageState { return baseState },
555- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
555+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
556556 ia .Push = true
557557 return ia
558558 },
@@ -561,7 +561,7 @@ func TestImageDiff(t *testing.T) {
561561 {
562562 name : "diff if buildOnPreview doesn't change" ,
563563 state : func (* testing.T , ImageState ) ImageState { return baseState },
564- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
564+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
565565 val := true
566566 ia .BuildOnPreview = & val
567567 return ia
@@ -571,7 +571,7 @@ func TestImageDiff(t *testing.T) {
571571 {
572572 name : "diff if buildOnPreview changes" ,
573573 state : func (* testing.T , ImageState ) ImageState { return baseState },
574- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
574+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
575575 val := false
576576 ia .BuildOnPreview = & val
577577 return ia
@@ -581,7 +581,7 @@ func TestImageDiff(t *testing.T) {
581581 {
582582 name : "diff if ssh changes" ,
583583 state : func (* testing.T , ImageState ) ImageState { return baseState },
584- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
584+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
585585 ia .SSH = []SSH {{ID : "default" }}
586586 return ia
587587 },
@@ -590,7 +590,7 @@ func TestImageDiff(t *testing.T) {
590590 {
591591 name : "diff if hosts change" ,
592592 state : func (* testing.T , ImageState ) ImageState { return baseState },
593- inputs : func (t * testing.T , ia ImageArgs ) ImageArgs {
593+ inputs : func (_ * testing.T , ia ImageArgs ) ImageArgs {
594594 ia .AddHosts = []string {"localhost" }
595595 return ia
596596 },
@@ -751,7 +751,7 @@ func TestImageDiff(t *testing.T) {
751751 },
752752 {
753753 name : "diff if local export doesn't exist" ,
754- state : func (t * testing.T , state ImageState ) ImageState {
754+ state : func (_ * testing.T , state ImageState ) ImageState {
755755 state .Exports = []Export {
756756 {Local : & ExportLocal {Dest : "not-real" }},
757757 }
@@ -767,7 +767,7 @@ func TestImageDiff(t *testing.T) {
767767 },
768768 {
769769 name : "diff if tar export doesn't exist" ,
770- state : func (t * testing.T , state ImageState ) ImageState {
770+ state : func (_ * testing.T , state ImageState ) ImageState {
771771 state .Exports = []Export {
772772 {Tar : & ExportTar {ExportLocal : ExportLocal {Dest : "not-real" }}},
773773 }
0 commit comments