@@ -61,10 +61,10 @@ func fullImageManifest(t *testing.T, ref reference.Named) types.ImageManifest {
6161}
6262
6363func TestInspectCommandLocalManifestNotFound (t * testing.T ) {
64- store := store .NewStore (t .TempDir ())
64+ refStore := store .NewStore (t .TempDir ())
6565
6666 cli := test .NewFakeCli (nil )
67- cli .SetManifestStore (store )
67+ cli .SetManifestStore (refStore )
6868
6969 cmd := newInspectCommand (cli )
7070 cmd .SetOut (io .Discard )
@@ -74,10 +74,10 @@ func TestInspectCommandLocalManifestNotFound(t *testing.T) {
7474}
7575
7676func TestInspectCommandNotFound (t * testing.T ) {
77- store := store .NewStore (t .TempDir ())
77+ refStore := store .NewStore (t .TempDir ())
7878
7979 cli := test .NewFakeCli (nil )
80- cli .SetManifestStore (store )
80+ cli .SetManifestStore (refStore )
8181 cli .SetRegistryClient (& fakeRegistryClient {
8282 getManifestFunc : func (_ context.Context , _ reference.Named ) (types.ImageManifest , error ) {
8383 return types.ImageManifest {}, errors .New ("missing" )
@@ -95,13 +95,13 @@ func TestInspectCommandNotFound(t *testing.T) {
9595}
9696
9797func TestInspectCommandLocalManifest (t * testing.T ) {
98- store := store .NewStore (t .TempDir ())
98+ refStore := store .NewStore (t .TempDir ())
9999
100100 cli := test .NewFakeCli (nil )
101- cli .SetManifestStore (store )
101+ cli .SetManifestStore (refStore )
102102 namedRef := ref (t , "alpine:3.0" )
103103 imageManifest := fullImageManifest (t , namedRef )
104- err := store .Save (ref (t , "list:v1" ), namedRef , imageManifest )
104+ err := refStore .Save (ref (t , "list:v1" ), namedRef , imageManifest )
105105 assert .NilError (t , err )
106106
107107 cmd := newInspectCommand (cli )
@@ -113,10 +113,10 @@ func TestInspectCommandLocalManifest(t *testing.T) {
113113}
114114
115115func TestInspectcommandRemoteManifest (t * testing.T ) {
116- store := store .NewStore (t .TempDir ())
116+ refStore := store .NewStore (t .TempDir ())
117117
118118 cli := test .NewFakeCli (nil )
119- cli .SetManifestStore (store )
119+ cli .SetManifestStore (refStore )
120120 cli .SetRegistryClient (& fakeRegistryClient {
121121 getManifestFunc : func (_ context.Context , ref reference.Named ) (types.ImageManifest , error ) {
122122 return fullImageManifest (t , ref ), nil
0 commit comments