gofmt, govet, run those in Travis, add 1.7
This commit is contained in:
@ -916,15 +916,14 @@ func TestRootUnknownCommand(t *testing.T) {
|
||||
|
||||
func TestRootUnknownCommandSilenced(t *testing.T) {
|
||||
r := noRRSetupTestSilenced("bogus")
|
||||
s := "Run 'cobra-test --help' for usage.\n"
|
||||
|
||||
if r.Output != "" {
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)
|
||||
t.Errorf("Unexpected response.\nExpecting to be: \n\"\"\n Got:\n %q\n", r.Output)
|
||||
}
|
||||
|
||||
r = noRRSetupTestSilenced("--strtwo=a bogus")
|
||||
if r.Output != "" {
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)
|
||||
t.Errorf("Unexpected response.\nExpecting to be:\n\"\"\nGot:\n %q\n", r.Output)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user