Address TODO in PR #4652 (#4856)

* Address TODO in PR #4652

* Improve readability
This commit is contained in:
Anna Song
2022-11-08 13:51:01 -08:00
committed by GitHub
parent 6ffd22a1f1
commit 6d9b54004e
2 changed files with 30 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ import (
"sigs.k8s.io/kustomize/kyaml/filesys"
)
func TestHasRemoteFileScheme(t *testing.T) {
func TestIsRemoteFile(t *testing.T) {
cases := map[string]struct {
url string
valid bool
@@ -50,7 +50,7 @@ func TestHasRemoteFileScheme(t *testing.T) {
for name, test := range cases {
test := test
t.Run(name, func(t *testing.T) {
require.Equal(t, test.valid, HasRemoteFileScheme(test.url))
require.Equal(t, test.valid, IsRemoteFile(test.url))
})
}
}