(id: number, fields: Partial<GraphNode> = {})
| 3 | import { GALAXY_CONTEXT_LIMITS, galaxyNodeContext } from './galaxy-context'; |
| 4 | |
| 5 | const node = (id: number, fields: Partial<GraphNode> = {}): GraphNode => ({ id, name: `node-${id}`, label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '#fff', ...fields }); |
| 6 | function fixture(): GraphData { |
| 7 | return { |
| 8 | nodes: [node(1, { name: 'main', qualified_name: 'app.main', file_path: 'src/main.c', start_line: 8, end_line: 21, status: 'entry', in_calls: 0, out_calls: 2 }), node(2, { name: 'initialize' }), node(3, { name: 'caller' })], |
no outgoing calls
no test coverage detected