Minimal Node stub — the traversal code only reads id/kind/name.
(id: string, kind: Node['kind'] = 'function')
| 518 | |
| 519 | /** Minimal Node stub — the traversal code only reads id/kind/name. */ |
| 520 | function tNode(id: string, kind: Node['kind'] = 'function'): Node { |
| 521 | return { |
| 522 | id, |
| 523 | kind, |
| 524 | name: id, |
| 525 | qualifiedName: id, |
| 526 | filePath: `src/${id}.ts`, |
| 527 | language: 'typescript', |
| 528 | startLine: 1, |
| 529 | endLine: 10, |
| 530 | startColumn: 0, |
| 531 | endColumn: 0, |
| 532 | } as unknown as Node; |
| 533 | } |
| 534 | |
| 535 | /** Build a GraphTraverser over a fixed node/edge set, honoring the `kinds` filter. */ |
| 536 | function tGraph(nodes: Node[], edges: Edge[]): GraphTraverser { |
no outgoing calls
no test coverage detected