(fnName: string)
| 703 | }); |
| 704 | |
| 705 | function callerCount(fnName: string): number { |
| 706 | const results = cg.searchNodes(fnName); |
| 707 | const def = results.map(r => r.node).find(n => n.kind === 'function' && n.name === fnName); |
| 708 | if (!def) return -1; |
| 709 | return cg.getCallers(def.id).length; |
| 710 | } |
| 711 | |
| 712 | it('preserves incoming cross-file calls edges when the callee file is re-indexed', async () => { |
| 713 | // Baseline: both callees have one cross-file caller each. |
no test coverage detected