Skip to content

Commit

Permalink
remove delete test skel and change compute path test
Browse files Browse the repository at this point in the history
  • Loading branch information
redradrat committed Oct 24, 2020
1 parent 0537092 commit b311990
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions pkg/repositories/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,6 @@ func TestRegistry(t *testing.T) {
}
}

func TestRemoveRepository(t *testing.T) {
type args struct {
name string
}
tests := []struct {
name string
args args
want RegistryModification
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := RemoveRepository(tt.args.name); !reflect.DeepEqual(got, tt.want) {
t.Errorf("RemoveRepository() = %v, want %v", got, tt.want)
}
})
}
}

func TestRepoAuthExists(t *testing.T) {
type args struct {
url string
Expand Down Expand Up @@ -468,8 +448,8 @@ func Test_computePath(t *testing.T) {
args args
want string
}{
{name: "https", args: struct{ url string }{url: DemoHttpsUrl}, want: filepath.Join(CacheDir, "demo-concepts")},
{name: "ssh", args: struct{ url string }{url: DemoSshUrl}, want: filepath.Join(CacheDir, "demo-concepts")},
{name: "https", args: struct{ url string }{url: DemoHttpsUrl}, want: filepath.Join(CacheDir, "kable")},
{name: "ssh", args: struct{ url string }{url: DemoSshUrl}, want: filepath.Join(CacheDir, "kable")},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit b311990

Please sign in to comment.