MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cr536_count_cross

Function cr536_count_cross

tests/repro/repro_issue523.c:271–279  ·  view source on GitHub ↗

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). */

Source from the content-addressed store, hash-verified

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). */
271static 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.

Callers 1

repro_issue523.cFile · 0.85

Calls 3

cbm_store_open_pathFunction · 0.85
rh_count_edgesFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected