(fnName: string)
| 487 | }); |
| 488 | |
| 489 | function callerCount(fnName: string): number { |
| 490 | const results = cg.searchNodes(fnName); |
| 491 | const def = results.map(r => r.node).find(n => n.kind === 'function' && n.name === fnName); |
| 492 | if (!def) return -1; |
| 493 | return cg.getCallers(def.id).length; |
| 494 | } |
| 495 | |
| 496 | it('preserves incoming cross-file calls edges when the callee file is re-indexed', async () => { |
| 497 | // Baseline: both callees have one cross-file caller each. |
no test coverage detected