MCPcopy Index your code
hub / github.com/github/github-mcp-server / TestGenerateToolsetsHelp

Function TestGenerateToolsetsHelp

pkg/github/tools_test.go:158–187  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func 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}

Callers

nothing calls this directly

Calls 1

GenerateToolsetsHelpFunction · 0.85

Tested by

no test coverage detected