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

Function lang_metrics

tests/test_lang_contract.c:349–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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