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

Function rh_count_label

tests/repro/repro_harness.h:159–166  ·  view source on GitHub ↗

Count nodes carrying `label`. Returns -1 on query error. */

Source from the content-addressed store, hash-verified

157
158/* Count nodes carrying `label`. Returns -1 on query error. */
159static inline int rh_count_label(cbm_store_t *store, const char *project, const char *label) {
160 cbm_node_t *nodes = NULL;
161 int count = 0;
162 if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK)
163 return -1;
164 cbm_store_free_nodes(nodes, count);
165 return count;
166}
167
168/* TIER B: returns true if cbm_extract_file CRASHES (signal) on `content`.
169 * Runs in a forked child so the crash doesn't take down the repro runner. */

Callers 3

repro_issue523.cFile · 0.85
cr536_setupFunction · 0.85

Calls 2

cbm_store_free_nodesFunction · 0.85

Tested by

no test coverage detected