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

Function require_resolved

tests/test_cs_lsp.c:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
49 int idx = find_resolved(r, callerSub, calleeSub);
50 if (idx < 0) {
51 printf(" MISSING resolved call: caller~%s -> callee~%s (have %d)\n", callerSub, calleeSub,
52 r->resolved_calls.count);
53 for (int i = 0; i < r->resolved_calls.count; i++) {
54 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
55 printf(" %s -> %s [%s %.2f]\n", rc->caller_qn ? rc->caller_qn : "(null)",
56 rc->callee_qn ? rc->callee_qn : "(null)",
57 rc->strategy ? rc->strategy : "(null)", rc->confidence);
58 }
59 }
60 return idx;
61}
62
63static int count_resolved_with_strategy(const CBMFileResult *r, const char *strategy) {
64 int n = 0;

Callers 1

test_cs_lsp.cFile · 0.70

Calls 1

find_resolvedFunction · 0.70

Tested by

no test coverage detected