From 5726017a25c869290d53bfc9851a2993aca79e89 Mon Sep 17 00:00:00 2001 From: Jan Polasek Date: Mon, 22 Aug 2016 18:26:19 +0100 Subject: [PATCH] Run gofmt. --- cobra_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cobra_test.go b/cobra_test.go index 3eb1725b..de9e1bdc 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -956,7 +956,7 @@ func TestSubcommandChecksErrorsWhenSubcommandNotFound(t *testing.T) { t.Errorf("Unexpected response.\nExpected:\n %q\nGot:\n %q\n", expectedOutput, result.Output) } - result = simpleTester(rootCmd, cmdSubNoRun.Name() + " " + nonExistentCommand) + result = simpleTester(rootCmd, cmdSubNoRun.Name()+" "+nonExistentCommand) if result.Error == nil { t.Errorf("Unexpected response.\nExpected error, got success with output:\n %q\n", result.Output) } @@ -979,7 +979,7 @@ func TestSubcommandChecksNoErrorsWhenRunDefined(t *testing.T) { t.Errorf("Unexpected response.\nExpected output:\n %q\nGot:\n %q\n", []string{nonExistentCommand}, tr) } - result = simpleTester(rootCmd, cmdEcho.Name() + " " + nonExistentCommand) + result = simpleTester(rootCmd, cmdEcho.Name()+" "+nonExistentCommand) if result.Error != nil { t.Errorf("Unexpected response.\nExpected error, got success with output:\n %q\n", result.Output) }