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

Function cp_count_label

tests/test_convergence_probe.c:260–268  ·  view source on GitHub ↗

Count nodes with a given label. */

Source from the content-addressed store, hash-verified

258
259/* Count nodes with a given label. */
260static int cp_count_label(cbm_store_t *store, const char *project, const char *label) {
261 if (!store) return -1;
262 cbm_node_t *nodes = NULL;
263 int count = 0;
264 if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK)
265 return -1;
266 cbm_store_free_nodes(nodes, count);
267 return count;
268}
269
270/* Sum callable nodes (Function + Method). */
271static int cp_callables(cbm_store_t *store, const char *project) {

Callers 2

cp_callablesFunction · 0.85

Calls 2

cbm_store_free_nodesFunction · 0.85

Tested by

no test coverage detected