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

Function TestNewRegistryEmpty

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

Source from the content-addressed store, hash-verified

72}
73
74func TestNewRegistryEmpty(t *testing.T) {
75 reg := mustBuild(t, NewBuilder())
76 if len(reg.AvailableTools(context.Background())) != 0 {
77 t.Fatalf("Expected tools to be empty")
78 }
79 if len(reg.AvailableResourceTemplates(context.Background())) != 0 {
80 t.Fatalf("Expected resourceTemplates to be empty")
81 }
82 if len(reg.AvailablePrompts(context.Background())) != 0 {
83 t.Fatalf("Expected prompts to be empty")
84 }
85}
86
87func TestNewRegistryWithTools(t *testing.T) {
88 tools := []ServerTool{

Callers

nothing calls this directly

Calls 5

mustBuildFunction · 0.85
NewBuilderFunction · 0.85
AvailableToolsMethod · 0.80
AvailablePromptsMethod · 0.80

Tested by

no test coverage detected