(id: string)
| 17 | } |
| 18 | |
| 19 | function createMockNode(id: string): DAGNode { |
| 20 | return { |
| 21 | id, |
| 22 | block: createMockBlock(id), |
| 23 | outgoingEdges: new Map(), |
| 24 | incomingEdges: new Set(), |
| 25 | metadata: {}, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | function createMockDAG(nodeIds: string[]): DAG { |
| 30 | const nodes = new Map<string, DAGNode>() |
no test coverage detected