(fnName: string)
| 681 | }); |
| 682 | |
| 683 | function callerCount(fnName: string): number { |
| 684 | const results = cg.searchNodes(fnName); |
| 685 | const def = results.map(r => r.node).find(n => n.kind === 'function' && n.name === fnName); |
| 686 | if (!def) return -1; |
| 687 | return cg.getCallers(def.id).length; |
| 688 | } |
| 689 | |
| 690 | it('preserves incoming cross-file calls edges when the callee file is re-indexed', async () => { |
| 691 | // Baseline: both callees have one cross-file caller each. |
no test coverage detected