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

Function require_resolved

tests/test_php_lsp.c:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
41 int idx = find_resolved(r, callerSub, calleeSub);
42 if (idx < 0) {
43 printf(" MISSING resolved call: caller~%s -> callee~%s (have %d)\n", callerSub, calleeSub,
44 r->resolved_calls.count);
45 for (int i = 0; i < r->resolved_calls.count; i++) {
46 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
47 printf(" %s -> %s [%s %.2f]\n", rc->caller_qn ? rc->caller_qn : "(null)",
48 rc->callee_qn ? rc->callee_qn : "(null)", rc->strategy ? rc->strategy : "(null)",
49 rc->confidence);
50 }
51 }
52 return idx;
53}
54
55static const CBMResolvedCall *find_resolved_with_strategy(const CBMFileResult *r,
56 const char *callerSub,

Callers 1

test_php_lsp.cFile · 0.70

Calls 1

find_resolvedFunction · 0.70

Tested by

no test coverage detected