| 29 | } |
| 30 | |
| 31 | static int find_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) { |
| 32 | for (int i = 0; i < r->resolved_calls.count; i++) { |
| 33 | const CBMResolvedCall *rc = &r->resolved_calls.items[i]; |
| 34 | if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn && |
| 35 | strstr(rc->callee_qn, calleeSub)) |
| 36 | return i; |
| 37 | } |
| 38 | return -1; |
| 39 | } |
| 40 | |
| 41 | static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) { |
| 42 | int idx = find_resolved(r, callerSub, calleeSub); |
no outgoing calls
no test coverage detected