diff --git a/images_test.go b/pkg/imgutil/imgutil_test.go similarity index 92% rename from images_test.go rename to pkg/imgutil/imgutil_test.go index 3b5793a155..95867f7cb2 100644 --- a/images_test.go +++ b/pkg/imgutil/imgutil_test.go @@ -14,12 +14,11 @@ limitations under the License. */ -package main +package imgutil import ( "testing" - "github.com/containerd/nerdctl/pkg/imgutil" "gotest.tools/v3/assert" ) @@ -52,7 +51,7 @@ func TestParseRepoTag(t *testing.T) { }, } for _, tc := range testCases { - repo, tag := imgutil.ParseRepoTag(tc.imgName) + repo, tag := ParseRepoTag(tc.imgName) assert.Equal(t, tc.repo, repo) assert.Equal(t, tc.tag, tag) }