| 63 | } |
| 64 | |
| 65 | static int cov_require(const CBMFileResult *r, const char *callerSub, const char *calleeSub) { |
| 66 | int idx = cov_find(r, callerSub, calleeSub); |
| 67 | if (idx < 0) { |
| 68 | printf("\n MISSING: %s -> %s (have %d entries)\n", callerSub, calleeSub, |
| 69 | r->resolved_calls.count); |
| 70 | for (int i = 0; i < r->resolved_calls.count; i++) { |
| 71 | const CBMResolvedCall *rc = &r->resolved_calls.items[i]; |
| 72 | printf(" %s -> %s [%s %.2f]\n", rc->caller_qn ? rc->caller_qn : "(null)", |
| 73 | rc->callee_qn ? rc->callee_qn : "(null)", |
| 74 | rc->strategy ? rc->strategy : "(null)", rc->confidence); |
| 75 | } |
| 76 | } |
| 77 | return idx; |
| 78 | } |
| 79 | |
| 80 | static int cov_count_strict(const CBMFileResult *r) { |
| 81 | int n = 0; |
no test coverage detected