(id: number)
| 66 | }); |
| 67 | |
| 68 | const graphNode = (id: number): GraphNode => ({ id, name: `n${id}`, qualified_name: `p.n${id}`, label: 'Function', |
| 69 | file_path: id === 1 ? 'src/a.ts' : `src/${id}.ts`, x: 0, y: 0, z: 0, size: 3, color: '#abcdef' }); |
| 70 | const graph: GraphData = { nodes: [1, 2, 3, 4, 5].map(graphNode), total_nodes: 5, edges: [ |
| 71 | { source: 1, target: 2, type: 'CALLS' }, { source: 1, target: 3, type: 'IMPORTS' }, |
| 72 | { source: 3, target: 4, type: 'CALLS' }, { source: 2, target: 5, type: 'CALLS' }, |
nothing calls this directly
no outgoing calls
no test coverage detected