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

Function mustBuild

pkg/inventory/registry_test.go:16–21  ·  view source on GitHub ↗

mustBuild is a test helper that calls Build() and fails the test if an error occurs. Use this for tests where Build() is not expected to fail.

(t *testing.T, b *Builder)

Source from the content-addressed store, hash-verified

14// mustBuild is a test helper that calls Build() and fails the test if an error occurs.
15// Use this for tests where Build() is not expected to fail.
16func mustBuild(t *testing.T, b *Builder) *Inventory {
17 t.Helper()
18 inv, err := b.Build()
19 require.NoError(t, err)
20 return inv
21}
22
23// testToolsetMetadata returns a ToolsetMetadata for testing
24func testToolsetMetadata(id string) ToolsetMetadata {

Callers 15

TestNewRegistryEmptyFunction · 0.85
TestNewRegistryWithToolsFunction · 0.85
TestWithReadOnlyFunction · 0.85
TestWithToolsetsFunction · 0.85
TestUnrecognizedToolsetsFunction · 0.85
TestWithToolsFunction · 0.85
TestChainedFiltersFunction · 0.85
TestToolsetIDsFunction · 0.85

Calls 1

BuildMethod · 0.80

Tested by

no test coverage detected