MCPcopy
hub / github.com/coder/mux / startResult

Function startResult

src/node/services/mcpServerManager.test.ts:69–80  ·  view source on GitHub ↗
(
  entries: Array<[string, Parameters<typeof testInstance>[1]?]>,
  options: { failedServerNames?: string[]; timedOutServerNames?: string[] } = {}
)

Source from the content-addressed store, hash-verified

67}
68
69function startResult(
70 entries: Array<[string, Parameters<typeof testInstance>[1]?]>,
71 options: { failedServerNames?: string[]; timedOutServerNames?: string[] } = {}
72) {
73 return {
74 instances: new Map(
75 entries.map(([name, instanceOptions]) => [name, testInstance(name, instanceOptions)])
76 ),
77 failedServerNames: options.failedServerNames ?? [],
78 timedOutServerNames: options.timedOutServerNames ?? [],
79 };
80}
81
82function cachedStats(overrides: Record<string, unknown> = {}) {
83 return {

Callers 1

Calls 1

testInstanceFunction · 0.85

Tested by

no test coverage detected