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

Function TestNewRegistryWithTools

pkg/inventory/registry_test.go:87–99  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestNewRegistryWithTools(t *testing.T) {
88 tools := []ServerTool{
89 mockTool("tool1", "toolset1", true),
90 mockTool("tool2", "toolset1", false),
91 mockTool("tool3", "toolset2", true),
92 }
93
94 reg := mustBuild(t, NewBuilder().SetTools(tools))
95
96 if len(reg.AllTools()) != 3 {
97 t.Errorf("Expected 3 tools, got %d", len(reg.AllTools()))
98 }
99}
100
101func TestAvailableTools_NoFilters(t *testing.T) {
102 tools := []ServerTool{

Callers

nothing calls this directly

Calls 5

mustBuildFunction · 0.85
NewBuilderFunction · 0.85
SetToolsMethod · 0.80
AllToolsMethod · 0.80
mockToolFunction · 0.70

Tested by

no test coverage detected