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

Function count_calls

tests/test_ts_lsp.c:3174–3185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3172
3173/* Count resolved (confidence > 0) vs unresolved (confidence == 0) and total. */
3174static void count_calls(const CBMFileResult *r, int *resolved, int *unresolved, int *total) {
3175 *resolved = *unresolved = *total = 0;
3176 if (!r)
3177 return;
3178 *total = r->resolved_calls.count;
3179 for (int i = 0; i < r->resolved_calls.count; i++) {
3180 if (r->resolved_calls.items[i].confidence > 0)
3181 (*resolved)++;
3182 else
3183 (*unresolved)++;
3184 }
3185}
3186
3187TEST(tslsp_baseline_vs_lsp_simple) {
3188 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