(id: number, status: GraphNode['status'] = 'normal')
| 3 | import type { GraphData, GraphNode } from '../galaxy/types'; |
| 4 | |
| 5 | const node = (id: number, status: GraphNode['status'] = 'normal'): GraphNode => ({ |
| 6 | id, file_path: `src/${id}.ts`, name: `s${id}`, status, label: 'Function', |
| 7 | x: 0, y: 0, z: 0, size: 1, color: '#fff', |
| 8 | }); |
| 9 | const graph: GraphData = { total_nodes: 4, nodes: [node(1, 'entry'), node(2), node(3), node(4, 'entry')], |
| 10 | edges: [{ source: 1, target: 2, type: 'CALLS' }, { source: 2, target: 3, type: 'CALLS' }, |
| 11 | { source: 3, target: 2, type: 'CALLS' }, { source: 4, target: 3, type: 'IMPORTS' }] }; |
no outgoing calls
no test coverage detected