(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestGenerateToolsetsHelp(t *testing.T) { |
| 159 | // Generate the help text |
| 160 | helpText := GenerateToolsetsHelp() |
| 161 | |
| 162 | // Verify help text is not empty |
| 163 | require.NotEmpty(t, helpText) |
| 164 | |
| 165 | // Verify it contains expected sections |
| 166 | assert.Contains(t, helpText, "Comma-separated list of tool groups to enable") |
| 167 | assert.Contains(t, helpText, "Available:") |
| 168 | assert.Contains(t, helpText, "Special toolset keywords:") |
| 169 | assert.Contains(t, helpText, "all: Enables all available toolsets") |
| 170 | assert.Contains(t, helpText, "default: Enables the default toolset configuration") |
| 171 | assert.Contains(t, helpText, "Examples:") |
| 172 | assert.Contains(t, helpText, "--toolsets=actions,gists,notifications") |
| 173 | assert.Contains(t, helpText, "--toolsets=default,actions,gists") |
| 174 | assert.Contains(t, helpText, "--toolsets=all") |
| 175 | |
| 176 | // Verify it contains some expected default toolsets |
| 177 | assert.Contains(t, helpText, "context") |
| 178 | assert.Contains(t, helpText, "repos") |
| 179 | assert.Contains(t, helpText, "issues") |
| 180 | assert.Contains(t, helpText, "pull_requests") |
| 181 | assert.Contains(t, helpText, "users") |
| 182 | |
| 183 | // Verify it contains some expected available toolsets |
| 184 | assert.Contains(t, helpText, "actions") |
| 185 | assert.Contains(t, helpText, "gists") |
| 186 | assert.Contains(t, helpText, "notifications") |
| 187 | } |
nothing calls this directly
no test coverage detected