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

Function granularToolsForToolset

pkg/github/granular_tools_test.go:22–30  ·  view source on GitHub ↗
(toolsetID inventory.ToolsetID, featureFlag string)

Source from the content-addressed store, hash-verified

20)
21
22func granularToolsForToolset(toolsetID inventory.ToolsetID, featureFlag string) []inventory.ServerTool {
23 var result []inventory.ServerTool
24 for _, tool := range AllTools(translations.NullTranslationHelper) {
25 if tool.Toolset.ID == toolsetID && tool.FeatureFlagEnable == featureFlag {
26 result = append(result, tool)
27 }
28 }
29 return result
30}
31
32func TestGranularToolSnaps(t *testing.T) {
33 // Test toolsnaps for all granular tools

Callers 2

Calls 1

AllToolsFunction · 0.85

Tested by

no test coverage detected