(fnName: string)
| 787 | }); |
| 788 | |
| 789 | function callerCount(fnName: string): number { |
| 790 | const results = cg.searchNodes(fnName); |
| 791 | const def = results.map(r => r.node).find(n => n.kind === 'function' && n.name === fnName); |
| 792 | if (!def) return -1; |
| 793 | return cg.getCallers(def.id).length; |
| 794 | } |
| 795 | |
| 796 | it('preserves incoming cross-file calls edges when the callee file is re-indexed', async () => { |
| 797 | // Baseline: both callees have one cross-file caller each. |
no test coverage detected