MCPcopy Create free account
hub / github.com/github/gh-aw / TestSubcommandListingsUseHyphenBullets

Function TestSubcommandListingsUseHyphenBullets

pkg/cli/cli_consistency_help_test.go:52–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestSubcommandListingsUseHyphenBullets(t *testing.T) {
53 tests := []struct {
54 name string
55 longDoc string
56 }{
57 {name: "mcp", longDoc: NewMCPCommand().Long},
58 {name: "project", longDoc: NewProjectCommand().Long},
59 {name: "secrets", longDoc: NewSecretsCommand().Long},
60 {name: "experiments", longDoc: NewExperimentsCommand().Long},
61 }
62
63 for _, tt := range tests {
64 t.Run(tt.name, func(t *testing.T) {
65 assert.Contains(t, tt.longDoc, "Available subcommands:", "command should document available subcommands")
66 assert.NotContains(t, tt.longDoc, " • ", "subcommand list should use '-' bullet style consistently")
67 })
68 }
69}
70
71func TestHelpTextUsesStandardEgPunctuation(t *testing.T) {
72 assert.Contains(t, coolDownFlagUsage, "(e.g., 7d", "--cool-down help should use e.g., punctuation")

Callers

nothing calls this directly

Calls 5

NewMCPCommandFunction · 0.85
NewProjectCommandFunction · 0.85
NewSecretsCommandFunction · 0.85
NewExperimentsCommandFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected