Count calls whose callee_name is exactly `name` (has_call is substring). */
| 3750 | |
| 3751 | /* Count calls whose callee_name is exactly `name` (has_call is substring). */ |
| 3752 | static int count_calls_exact(CBMFileResult *r, const char *name) { |
| 3753 | int n = 0; |
| 3754 | for (int i = 0; i < r->calls.count; i++) { |
| 3755 | if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, name) == 0) |
| 3756 | n++; |
| 3757 | } |
| 3758 | return n; |
| 3759 | } |
| 3760 | |
| 3761 | /* (b) A dotted config string must never be extracted as a callee. */ |
| 3762 | TEST(extract_perl_config_string_not_a_callee) { |