(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 71 | func TestHelpTextUsesStandardEgPunctuation(t *testing.T) { |
| 72 | assert.Contains(t, coolDownFlagUsage, "(e.g., 7d", "--cool-down help should use e.g., punctuation") |
nothing calls this directly
no test coverage detected