(id: number, file_path: string, name = `symbol${id}`, status: GraphNode['status'] = 'normal')
| 3 | import type { GraphData, GraphNode } from '../galaxy/types'; |
| 4 | |
| 5 | export const node = (id: number, file_path: string, name = `symbol${id}`, status: GraphNode['status'] = 'normal'): GraphNode => ({ |
| 6 | id, file_path, name, status, label: 'Function', qualified_name: `fixture.${name}`, start_line: id + 1, |
| 7 | x: 0, y: 0, z: 0, size: 1, color: '#fff', |
| 8 | }); |
| 9 | export const graph: GraphData = { total_nodes: 4, nodes: [node(1, 'src/api/server.ts', 'start', 'entry'), |
| 10 | node(2, 'src/service/users.ts', 'users'), node(3, 'src/store/db.ts', 'save'), node(4, 'test/users.test.ts', 'testUsers', 'test')], |
| 11 | edges: [{ source: 1, target: 2, type: 'CALLS' }, { source: 2, target: 3, type: 'CALLS' }, |
no outgoing calls
no test coverage detected