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

Function mockToolWithFeatureFlag

pkg/http/handler_test.go:58–65  ·  view source on GitHub ↗
(name, toolsetID string, readOnly bool, enableFlag, disableFlag string)

Source from the content-addressed store, hash-verified

56var _ scopes.FetcherInterface = allScopesFetcher{}
57
58func mockToolWithFeatureFlag(name, toolsetID string, readOnly bool, enableFlag, disableFlag string) inventory.ServerTool {
59 tool := mockTool(name, toolsetID, readOnly)
60 tool.FeatureFlagEnable = enableFlag
61 if disableFlag != "" {
62 tool.FeatureFlagDisable = []string{disableFlag}
63 }
64 return tool
65}
66
67func TestInventoryFiltersForRequest(t *testing.T) {
68 tools := []inventory.ServerTool{

Calls 1

mockToolFunction · 0.70

Tested by

no test coverage detected