(id: number, extra: Partial<GraphNode> = {})
| 19 | afterEach(async () => { await act(async () => root.unmount()); host.remove(); }); |
| 20 | |
| 21 | const node = (id: number, extra: Partial<GraphNode> = {}): GraphNode => ({ id, name: `s${id}`, qualified_name: `p.s${id}`, file_path: `src/${id}.py`, |
| 22 | label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '#fff', ...extra }); |
| 23 | const selected = node(1, { name: 'JSONBAgg', qualified_name: 'p.JSONBAgg', file_path: 'general.py', label: 'Class' }); |
| 24 | const tests = Array.from({ length: 11 }, (_, at) => node(10 + at)); |
| 25 | const scopeGraph: GraphData = { total_nodes: 15, nodes: [selected, ...tests, node(30, { label: 'Module', file_path: 'general.py' }), node(40), node(41)], edges: [ |
no outgoing calls
no test coverage detected