Skip to content
Myr

Fix error messages in cobra_test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by bogem · committed by bogem · parent 7c674d9 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:cobra_test.go+2 added-2 removed
917 unmodified lines
918 r := noRRSetupTestSilenced("bogus")919 s := "Run 'cobra-test --help' for usage.\n"920921 if r.Output != "" {922 t.Errorf("Unexpected response.\nExpecting to be: \n\"\"\n Got:\n %q\n", s, r.Output)922 t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)923 }924925 r = noRRSetupTestSilenced("--strtwo=a bogus")926 if r.Output != "" {927 t.Errorf("Unexpected response.\nExpecting to be:\n\"\"\nGot:\n %q\n", s, r.Output)927 t.Errorf("Unexpected response.\nExpecting to be:\n %q\nGot:\n %q\n", s, r.Output)928 }929}930931func TestRootSuggestions(t *testing.T) {
257 unmodified lines