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

Function callables_with_outbound

tests/test_lang_contract.c:178–182  ·  view source on GitHub ↗

Callables (Function OR Method) that have >=1 outbound edge — the cross-language * "calls are attributed to the calling routine, not lumped on the file/Module * node" invariant (a mis-attributed call would leave the callable at degree 0). */

Source from the content-addressed store, hash-verified

176 * "calls are attributed to the calling routine, not lumped on the file/Module
177 * node" invariant (a mis-attributed call would leave the callable at degree 0). */
178static int callables_with_outbound(cbm_store_t *store, const char *project) {
179 int fn = label_with_outbound(store, project, "Function");
180 int mt = label_with_outbound(store, project, "Method");
181 return (fn < 0 ? 0 : fn) + (mt < 0 ? 0 : mt);
182}
183
184/* Count nodes carrying `label`. Returns -1 on query error. */
185static int count_label(cbm_store_t *store, const char *project, const char *label) {

Callers 2

lang_metricsFunction · 0.85

Calls 1

label_with_outboundFunction · 0.85

Tested by

no test coverage detected