| 549 | } |
| 550 | |
| 551 | static bool tc_resolved_equal(const CBMResolvedCallArray *a, |
| 552 | const CBMResolvedCallArray *b) { |
| 553 | if (a->count != b->count) return false; |
| 554 | for (int i = 0; i < a->count; i++) { |
| 555 | const CBMResolvedCall *x = &a->items[i], *y = &b->items[i]; |
| 556 | if (!tc_text(x->caller_qn, y->caller_qn) || !tc_text(x->callee_qn, y->callee_qn) || |
| 557 | !tc_text(x->strategy, y->strategy) || !tc_text(x->reason, y->reason) || |
| 558 | x->confidence != y->confidence || x->kind != y->kind || |
| 559 | x->site_start_byte != y->site_start_byte || x->site_end_byte != y->site_end_byte || |
| 560 | x->source_origin != y->source_origin) return false; |
| 561 | } |
| 562 | return true; |
| 563 | } |
| 564 | |
| 565 | static bool tc_resolved_foo(const CBMResolvedCallArray *out, |
| 566 | const char *caller, const char *callee) { |
no test coverage detected