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

Function rh_count_label

tests/repro/repro_harness.h:131–138  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

129
130/* Count nodes carrying `label`. Returns -1 on query error. */
131static inline int rh_count_label(cbm_store_t *store, const char *project, const char *label) {
132 cbm_node_t *nodes = NULL;
133 int count = 0;
134 if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK)
135 return -1;
136 cbm_store_free_nodes(nodes, count);
137 return count;
138}
139
140/* TIER B: returns true if cbm_extract_file CRASHES (signal) on `content`.
141 * 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