|
@@ -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
|