(name: string)
| 57 | } |
| 58 | |
| 59 | function findMethod(name: string) { |
| 60 | const hit = cg |
| 61 | .searchNodes(name) |
| 62 | .find((r) => (r.node.kind === 'method' || r.node.kind === 'function') && r.node.name === name); |
| 63 | expect(hit, `expected an indexed definition of ${name}`).toBeDefined(); |
| 64 | return hit!.node; |
| 65 | } |
| 66 | |
| 67 | // Compare call sites and resolution evidence, not just edge counts: a |
| 68 | // recovery can also silently downgrade confidence without losing a row. |
no test coverage detected