MCPcopy
hub / github.com/github/github-mcp-server / mustEmptyInventory

Function mustEmptyInventory

pkg/github/ui_resources_test.go:163–168  ·  view source on GitHub ↗

mustEmptyInventory builds an empty inventory for tests that only care about resources/prompts registered outside the inventory (such as the UI resources).

(t *testing.T)

Source from the content-addressed store, hash-verified

161// mustEmptyInventory builds an empty inventory for tests that only care about
162// resources/prompts registered outside the inventory (such as the UI resources).
163func mustEmptyInventory(t *testing.T) *inventory.Inventory {
164 t.Helper()
165 inv, err := NewInventory(stubTranslator).WithToolsets([]string{}).Build()
166 require.NoError(t, err)
167 return inv
168}

Callers 1

Calls 3

NewInventoryFunction · 0.85
BuildMethod · 0.80
WithToolsetsMethod · 0.80

Tested by

no test coverage detected