| 60 | } |
| 61 | |
| 62 | static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) { |
| 63 | int idx = find_resolved(r, callerSub, calleeSub); |
| 64 | if (idx < 0) { |
| 65 | printf(" MISSING resolved call: caller~%s -> callee~%s (have %d)\n", callerSub, calleeSub, |
| 66 | r->resolved_calls.count); |
| 67 | for (int i = 0; i < r->resolved_calls.count; i++) { |
| 68 | const CBMResolvedCall *rc = &r->resolved_calls.items[i]; |
| 69 | printf(" %s -> %s [%s %.2f]\n", rc->caller_qn ? rc->caller_qn : "(null)", |
| 70 | rc->callee_qn ? rc->callee_qn : "(null)", rc->strategy ? rc->strategy : "(null)", |
| 71 | rc->confidence); |
| 72 | } |
| 73 | } |
| 74 | return idx; |
| 75 | } |
| 76 | |
| 77 | /* Verify that two parser-backed calls with the same method leaf retain their |
| 78 | * own source occurrence all the way through semantic resolution. A leaf-only |
no test coverage detected