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

Function count_nodes_named

tests/test_pipeline.c:9703–9711  ·  view source on GitHub ↗

Count nodes with the given exact name in the project (e.g. a Route path). */

Source from the content-addressed store, hash-verified

9701
9702/* Count nodes with the given exact name in the project (e.g. a Route path). */
9703static int count_nodes_named(cbm_store_t *s, const char *project, const char *name) {
9704 cbm_node_t *ns = NULL;
9705 int n = 0;
9706 cbm_store_find_nodes_by_name(s, project, name, &ns, &n);
9707 if (ns) {
9708 cbm_store_free_nodes(ns, n);
9709 }
9710 return n;
9711}
9712
9713/* Parallel-resolver regression for the TS/JS receiver guard (>= 50 files forces
9714 * pass_parallel.c's resolve_file_calls). The guard must not drop a weak member

Callers 2

test_pipeline.cFile · 0.85

Calls 2

cbm_store_free_nodesFunction · 0.85

Tested by

no test coverage detected