(ids: string[], edges: Edge[])
| 842 | }); |
| 843 | |
| 844 | function seed(ids: string[], edges: Edge[]) { |
| 845 | for (const id of ids) { |
| 846 | cg['queries'].insertNode({ ...tNode(id), filePath: 'graph.ts' }); |
| 847 | } |
| 848 | edges.forEach((edge, i) => cg['queries'].insertEdge({ ...edge, line: i + 1 })); |
| 849 | } |
| 850 | |
| 851 | it('enqueues each dense fan-in target once while preserving the shortest path', () => { |
| 852 | const layerA = Array.from({ length: 16 }, (_, i) => `a${i}`); |
no test coverage detected