MCPcopy Index your code
hub / github.com/simstudioai/sim / createMockDAG

Function createMockDAG

apps/sim/executor/dag/construction/edges.test.ts:29–39  ·  view source on GitHub ↗
(nodeIds: string[])

Source from the content-addressed store, hash-verified

27}
28
29function createMockDAG(nodeIds: string[]): DAG {
30 const nodes = new Map<string, DAGNode>()
31 for (const id of nodeIds) {
32 nodes.set(id, createMockNode(id))
33 }
34 return {
35 nodes,
36 loopConfigs: new Map(),
37 parallelConfigs: new Map(),
38 }
39}
40
41function createMockWorkflow(
42 blocks: SerializedBlock[],

Callers 1

edges.test.tsFile · 0.70

Calls 2

createMockNodeFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected