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

Function lang_metrics

tests/test_lang_contract.c:340–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338} LangMetrics;
339
340static LangMetrics lang_metrics(const LangFile *files, int nfiles) {
341 LangProj lp;
342 cbm_store_t *store = lang_index_files(&lp, files, nfiles);
343 LangMetrics m = {0};
344 if (store) {
345 m.ok = 1;
346 m.calls = cbm_store_count_edges_by_type(store, lp.project, "CALLS");
347 m.callers = callables_with_outbound(store, lp.project);
348 m.types = type_like_nodes(store, lp.project);
349 m.imports = cbm_store_count_edges_by_type(store, lp.project, "IMPORTS");
350 }
351 lang_cleanup(&lp, store);
352 return m;
353}
354
355/* Go: same-package function call. */
356TEST(contract_go_calls) {

Callers 1

Calls 5

lang_index_filesFunction · 0.85
callables_with_outboundFunction · 0.85
type_like_nodesFunction · 0.85
lang_cleanupFunction · 0.85

Tested by

no test coverage detected