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

Function lang_metrics

tests/test_lang_contract.c:350–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348} LangMetrics;
349
350static LangMetrics lang_metrics(const LangFile *files, int nfiles) {
351 LangProj lp;
352 cbm_store_t *store = lang_index_files(&lp, files, nfiles);
353 LangMetrics m = {0};
354 if (store) {
355 m.ok = 1;
356 m.calls = cbm_store_count_edges_by_type(store, lp.project, "CALLS");
357 m.callers = callables_with_outbound(store, lp.project);
358 m.types = type_like_nodes(store, lp.project);
359 m.imports = cbm_store_count_edges_by_type(store, lp.project, "IMPORTS");
360 }
361 lang_cleanup(&lp, store);
362 return m;
363}
364
365/* Go: same-package function call. */
366TEST(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