Minimal Node stub — the traversal code only reads id/kind/name.
(id: string, kind: Node['kind'] = 'function')
| 532 | |
| 533 | /** Minimal Node stub — the traversal code only reads id/kind/name. */ |
| 534 | function tNode(id: string, kind: Node['kind'] = 'function'): Node { |
| 535 | return { |
| 536 | id, |
| 537 | kind, |
| 538 | name: id, |
| 539 | qualifiedName: id, |
| 540 | filePath: `src/${id}.ts`, |
| 541 | language: 'typescript', |
| 542 | startLine: 1, |
| 543 | endLine: 10, |
| 544 | startColumn: 0, |
| 545 | endColumn: 0, |
| 546 | } as unknown as Node; |
| 547 | } |
| 548 | |
| 549 | /** Build a GraphTraverser over a fixed node/edge set, honoring the `kinds` filter. */ |
| 550 | function tGraph(nodes: Node[], edges: Edge[]): GraphTraverser { |
no outgoing calls
no test coverage detected