MCPcopy
hub / github.com/urfave/cli / Test_ShowRootCommandHelp_NoAuthor

Function Test_ShowRootCommandHelp_NoAuthor

help_test.go:18–26  ·  help_test.go::Test_ShowRootCommandHelp_NoAuthor
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func 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
28func Test_ShowRootCommandHelp_NoVersion(t *testing.T) {
29 output := new(bytes.Buffer)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected