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

Function lrp_usage

tests/test_lsp_resolution_probe.c:178–183  ·  view source on GitHub ↗

Returns USAGE edge count (-1 on DB failure). */

Source from the content-addressed store, hash-verified

176
177/* Returns USAGE edge count (-1 on DB failure). */
178static int lrp_usage(LRP_Proj *lp, const LRP_File *files, int nfiles) {
179 cbm_store_t *store = lrp_index(lp, files, nfiles);
180 int n = store ? cbm_store_count_edges_by_type(store, lp->project, "USAGE") : -1;
181 lrp_cleanup(lp, store);
182 return n;
183}
184
185/* Diagnostic: dump edge histogram to stderr on failure. */
186static const char *LRP_ALL_EDGE_TYPES[] = {

Callers 1

Calls 3

lrp_indexFunction · 0.85
lrp_cleanupFunction · 0.85

Tested by

no test coverage detected