(fnName: string)
| 757 | }); |
| 758 | |
| 759 | function callerCount(fnName: string): number { |
| 760 | const results = cg.searchNodes(fnName); |
| 761 | const def = results.map(r => r.node).find(n => n.kind === 'function' && n.name === fnName); |
| 762 | if (!def) return -1; |
| 763 | return cg.getCallers(def.id).length; |
| 764 | } |
| 765 | |
| 766 | it('preserves incoming cross-file calls edges when the callee file is re-indexed', async () => { |
| 767 | // Baseline: both callees have one cross-file caller each. |
no test coverage detected