@@ -41,39 +41,39 @@ func TestNewInspectCommandSuccess(t *testing.T) {
4141 name string
4242 args []string
4343 imageCount int
44- imageInspectFunc func (img string ) (image.InspectResponse , [] byte , error )
44+ imageInspectFunc func (img string ) (image.InspectResponse , error )
4545 }{
4646 {
4747 name : "simple" ,
4848 args : []string {"image" },
4949 imageCount : 1 ,
50- imageInspectFunc : func (img string ) (image.InspectResponse , [] byte , error ) {
50+ imageInspectFunc : func (img string ) (image.InspectResponse , error ) {
5151 imageInspectInvocationCount ++
5252 assert .Check (t , is .Equal ("image" , img ))
53- return image.InspectResponse {}, nil , nil
53+ return image.InspectResponse {}, nil
5454 },
5555 },
5656 {
5757 name : "format" ,
5858 imageCount : 1 ,
5959 args : []string {"--format='{{.ID}}'" , "image" },
60- imageInspectFunc : func (img string ) (image.InspectResponse , [] byte , error ) {
60+ imageInspectFunc : func (img string ) (image.InspectResponse , error ) {
6161 imageInspectInvocationCount ++
62- return image.InspectResponse {ID : img }, nil , nil
62+ return image.InspectResponse {ID : img }, nil
6363 },
6464 },
6565 {
6666 name : "simple-many" ,
6767 args : []string {"image1" , "image2" },
6868 imageCount : 2 ,
69- imageInspectFunc : func (img string ) (image.InspectResponse , [] byte , error ) {
69+ imageInspectFunc : func (img string ) (image.InspectResponse , error ) {
7070 imageInspectInvocationCount ++
7171 if imageInspectInvocationCount == 1 {
7272 assert .Check (t , is .Equal ("image1" , img ))
7373 } else {
7474 assert .Check (t , is .Equal ("image2" , img ))
7575 }
76- return image.InspectResponse {}, nil , nil
76+ return image.InspectResponse {}, nil
7777 },
7878 },
7979 }
0 commit comments