Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Jul 14, 2020
1 parent bc3a74b commit 21322ab
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/kn/plugin/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ type testPlugin struct {
parts []string
}

func (t testPlugin) Name() string { return strings.Join(t.parts, " ") }
func (t testPlugin) Execute(args []string) error { return nil}
func (t testPlugin) Name() string { return strings.Join(t.parts, " ") }
func (t testPlugin) Execute(args []string) error { return nil }
func (t testPlugin) Description() (string, error) { return "desc: " + t.Name(), nil }
func (t testPlugin) CommandParts() []string { return t.parts }
func (t testPlugin) Path() string { return "" }
func (t testPlugin) CommandParts() []string { return t.parts }
func (t testPlugin) Path() string { return "" }

var _ Plugin = testPlugin{}

Expand Down Expand Up @@ -131,11 +131,11 @@ func TestFindPluginInternally(t *testing.T) {

data := []struct {
parts []string
name string
} {
{ []string{ "a", "b"}, "a b" },
{ []string{ "a"}, "a" },
{ []string{ "a", "c"}, "a" },
name string
}{
{[]string{"a", "b"}, "a b"},
{[]string{"a"}, "a"},
{[]string{"a", "c"}, "a"},
}
for _, d := range data {
plugin, err := ctx.pluginManager.FindPlugin(d.parts)
Expand Down

0 comments on commit 21322ab

Please sign in to comment.