(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func Test_ShowRootCommandHelp_NoAuthor(t *testing.T) { |
| 19 | output := new(bytes.Buffer) |
| 20 | cmd := &Command{Writer: output} |
| 21 | _ = ShowRootCommandHelp(cmd) |
| 22 | |
| 23 | if bytes.Contains(output.Bytes(), []byte("AUTHOR(S):")) { |
| 24 | t.Errorf("expected\n%snot to include %s", output.String(), "AUTHOR(S):") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func Test_ShowRootCommandHelp_NoVersion(t *testing.T) { |
| 29 | output := new(bytes.Buffer) |