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

Function stubStableIds

src/node/services/taskService.test.ts:282–286  ·  view source on GitHub ↗
(config: Config, ids: string[], fallbackId = "fffffffff0")

Source from the content-addressed store, hash-verified

280}
281
282function stubStableIds(config: Config, ids: string[], fallbackId = "fffffffff0"): void {
283 let nextIdIndex = 0;
284 const configWithStableId = config as unknown as { generateStableId: () => string };
285 configWithStableId.generateStableId = () => ids[nextIdIndex++] ?? fallbackId;
286}
287
288function createAIServiceMocks(
289 config: Config,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected