| 5342 | #undef PHP_TEST_METHOD |
| 5343 | |
| 5344 | static const CBMCall *php_vendor_site(const CBMFileResult *r, const char *caller, |
| 5345 | const char *leaf) { |
| 5346 | const CBMCall *found = NULL; |
| 5347 | for (int i = 0; r && i < r->calls.count; i++) { |
| 5348 | const CBMCall *c = &r->calls.items[i]; |
| 5349 | if (c->enclosing_func_qn && strstr(c->enclosing_func_qn, caller) && c->callee_name && |
| 5350 | strcmp(cbm_pipeline_call_callee_leaf(c->callee_name), leaf) == 0 && |
| 5351 | c->site_end_byte > c->site_start_byte) { |
| 5352 | if (found) |
| 5353 | return NULL; |
| 5354 | found = c; |
| 5355 | } |
| 5356 | } |
| 5357 | return found; |
| 5358 | } |
| 5359 | |
| 5360 | static const CBMResolvedCall *php_vendor_row(const CBMResolvedCallArray *out, const CBMCall *site, |
| 5361 | const char *callee) { |
no test coverage detected