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

Function count_calls

tests/test_ts_lsp.c:2675–2686  ·  view source on GitHub ↗

Count resolved (confidence > 0) vs unresolved (confidence == 0) and total. */

Source from the content-addressed store, hash-verified

2673
2674/* Count resolved (confidence > 0) vs unresolved (confidence == 0) and total. */
2675static void count_calls(const CBMFileResult *r, int *resolved, int *unresolved, int *total) {
2676 *resolved = *unresolved = *total = 0;
2677 if (!r)
2678 return;
2679 *total = r->resolved_calls.count;
2680 for (int i = 0; i < r->resolved_calls.count; i++) {
2681 if (r->resolved_calls.items[i].confidence > 0)
2682 (*resolved)++;
2683 else
2684 (*unresolved)++;
2685 }
2686}
2687
2688TEST(tslsp_baseline_vs_lsp_simple) {
2689 const char *source = "class Conn { ping(): void {} }\n"

Callers 1

test_ts_lsp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected