diff --git a/pkg/archive/archive_unix_test.go b/pkg/archive/archive_unix_test.go index ac3833fd55..2e9726b729 100644 --- a/pkg/archive/archive_unix_test.go +++ b/pkg/archive/archive_unix_test.go @@ -23,19 +23,6 @@ import ( "gotest.tools/v3/skip" ) -func TestCanonicalTarNameForPath(t *testing.T) { - cases := []struct{ in, expected string }{ - {"foo", "foo"}, - {"foo/bar", "foo/bar"}, - {"foo/dir/", "foo/dir/"}, - } - for _, v := range cases { - if CanonicalTarNameForPath(v.in) != v.expected { - t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, CanonicalTarNameForPath(v.in)) - } - } -} - func TestCanonicalTarName(t *testing.T) { cases := []struct { in string diff --git a/pkg/archive/archive_windows_test.go b/pkg/archive/archive_windows_test.go index f03b1e2d82..92b2c49c55 100644 --- a/pkg/archive/archive_windows_test.go +++ b/pkg/archive/archive_windows_test.go @@ -33,21 +33,6 @@ func TestCopyFileWithInvalidDest(t *testing.T) { } } -func TestCanonicalTarNameForPath(t *testing.T) { - cases := []struct { - in, expected string - }{ - {"foo", "foo"}, - {"foo/bar", "foo/bar"}, - {`foo\bar`, "foo/bar"}, - } - for _, v := range cases { - if CanonicalTarNameForPath(v.in) != v.expected { - t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, CanonicalTarNameForPath(v.in)) - } - } -} - func TestCanonicalTarName(t *testing.T) { cases := []struct { in string