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

Function count_calls

tests/test_ts_lsp.c:2423–2434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2421
2422/* Count resolved (confidence > 0) vs unresolved (confidence == 0) and total. */
2423static void count_calls(const CBMFileResult *r, int *resolved, int *unresolved, int *total) {
2424 *resolved = *unresolved = *total = 0;
2425 if (!r)
2426 return;
2427 *total = r->resolved_calls.count;
2428 for (int i = 0; i < r->resolved_calls.count; i++) {
2429 if (r->resolved_calls.items[i].confidence > 0)
2430 (*resolved)++;
2431 else
2432 (*unresolved)++;
2433 }
2434}
2435
2436TEST(tslsp_baseline_vs_lsp_simple) {
2437 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