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

Function TestToolsetIDs

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

Source from the content-addressed store, hash-verified

426}
427
428func TestToolsetIDs(t *testing.T) {
429 tools := []ServerTool{
430 mockTool("tool1", "toolset_b", true),
431 mockTool("tool2", "toolset_a", true),
432 mockTool("tool3", "toolset_b", true), // duplicate toolset
433 }
434
435 reg := mustBuild(t, NewBuilder().SetTools(tools))
436 ids := reg.ToolsetIDs()
437
438 if len(ids) != 2 {
439 t.Fatalf("Expected 2 unique toolset IDs, got %d", len(ids))
440 }
441
442 // Should be sorted
443 if ids[0] != "toolset_a" || ids[1] != "toolset_b" {
444 t.Errorf("Expected sorted IDs [toolset_a, toolset_b], got %v", ids)
445 }
446}
447
448func TestToolsetDescriptions(t *testing.T) {
449 tools := []ServerTool{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected