(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func Test_ShowRootCommandHelp_HideVersion(t *testing.T) { |
| 42 | output := new(bytes.Buffer) |
| 43 | cmd := &Command{Writer: output} |
| 44 | |
| 45 | cmd.HideVersion = true |
| 46 | |
| 47 | _ = ShowRootCommandHelp(cmd) |
| 48 | |
| 49 | if bytes.Contains(output.Bytes(), []byte("VERSION:")) { |
| 50 | t.Errorf("expected\n%snot to include %s", output.String(), "VERSION:") |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func Test_ShowRootCommandHelp_MultiLineDescription(t *testing.T) { |
| 55 | output := new(bytes.Buffer) |