mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Run gofmt.
This commit is contained in:
parent
0f10a71a34
commit
5726017a25
1 changed files with 2 additions and 2 deletions
|
@ -956,7 +956,7 @@ func TestSubcommandChecksErrorsWhenSubcommandNotFound(t *testing.T) {
|
||||||
t.Errorf("Unexpected response.\nExpected:\n %q\nGot:\n %q\n", expectedOutput, result.Output)
|
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 {
|
if result.Error == nil {
|
||||||
t.Errorf("Unexpected response.\nExpected error, got success with output:\n %q\n", result.Output)
|
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)
|
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 {
|
if result.Error != nil {
|
||||||
t.Errorf("Unexpected response.\nExpected error, got success with output:\n %q\n", result.Output)
|
t.Errorf("Unexpected response.\nExpected error, got success with output:\n %q\n", result.Output)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue