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

Function buildCSVOutputInventory

pkg/github/csv_output_test.go:352–360  ·  view source on GitHub ↗
(t *testing.T, tools []inventory.ServerTool, _ bool)

Source from the content-addressed store, hash-verified

350}
351
352func buildCSVOutputInventory(t *testing.T, tools []inventory.ServerTool, _ bool) *inventory.Inventory {
353 t.Helper()
354
355 inv, err := inventory.NewBuilder().
356 SetTools(tools).
357 Build()
358 require.NoError(t, err)
359 return inv
360}
361
362func newCSVOutputTestDeps(csvOutputEnabled bool) ToolDependencies {
363 return csvOutputTestDeps{stubDeps: stubDeps{obsv: stubExporters()}, csvOn: csvOutputEnabled}

Calls 3

NewBuilderFunction · 0.92
BuildMethod · 0.80
SetToolsMethod · 0.80

Tested by

no test coverage detected