Count CROSS_HTTP_CALLS rows in a project DB (re-opened from the cache dir, * because cbm_cross_repo_match wrote through its own store handles). */
| 269 | /* Count CROSS_HTTP_CALLS rows in a project DB (re-opened from the cache dir, |
| 270 | * because cbm_cross_repo_match wrote through its own store handles). */ |
| 271 | static int cr536_count_cross(RProj *proj) { |
| 272 | cbm_store_t *st = cbm_store_open_path(proj->dbpath); |
| 273 | if (!st) { |
| 274 | return -1; |
| 275 | } |
| 276 | int n = rh_count_edges(st, proj->project, "CROSS_HTTP_CALLS"); |
| 277 | cbm_store_close(st); |
| 278 | return n; |
| 279 | } |
| 280 | |
| 281 | /* |
| 282 | * TEST: url_path stored as a full URL must match a bare-path route. |
no test coverage detected