Brush all the lint off this code I wrote in a haze

This commit is contained in:
Erin Call
2019-12-09 10:52:41 -08:00
parent e3051ec72e
commit 8d66036252
11 changed files with 47 additions and 21 deletions

View File

@@ -11,14 +11,14 @@ func TestHelp(t *testing.T) {
defer ctrl.Finish()
mCmd := NewMockcmd(ctrl)
originalCommand := Command
originalCommand := command
Command = func(path string, args ...string) cmd {
assert.Equal(t, HELM_BIN, path)
command = func(path string, args ...string) cmd {
assert.Equal(t, helmBin, path)
assert.Equal(t, []string{"help"}, args)
return mCmd
}
defer func() { Command = originalCommand }()
defer func() { command = originalCommand }()
mCmd.EXPECT().
Stdout(gomock.Any())