Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Jul 13, 2020
1 parent 623c9aa commit 6ce417a
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 6ce417a

Please sign in to comment.