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

Function createMockEdgeManager

apps/sim/executor/execution/engine.test.ts:101–118  ·  view source on GitHub ↗
(
  processOutgoingEdgesImpl?: (node: DAGNode) => string[]
)

Source from the content-addressed store, hash-verified

99}
100
101function createMockEdgeManager(
102 processOutgoingEdgesImpl?: (node: DAGNode) => string[]
103): MockEdgeManager {
104 const mockFn = vi.fn().mockImplementation(processOutgoingEdgesImpl || (() => []))
105 return {
106 processOutgoingEdges: mockFn,
107 isNodeReady: vi.fn().mockReturnValue(true),
108 deactivateEdgeAndDescendants: vi.fn(),
109 restoreIncomingEdge: vi.fn(),
110 clearDeactivatedEdges: vi.fn(),
111 clearDeactivatedEdgesForNodes: vi.fn(),
112 getDeactivatedEdges: vi.fn(() => []),
113 getNodesWithActivatedEdge: vi.fn(() => []),
114 markNodeWithActivatedEdge: vi.fn(),
115 deactivateResumedEdge: vi.fn(),
116 hasActivatedEdge: vi.fn(() => false),
117 } as unknown as MockEdgeManager
118}
119
120interface MockNodeOrchestrator extends NodeExecutionOrchestrator {
121 executionCount: number

Callers 1

engine.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected