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

Function require_resolved

tests/test_py_lsp.c:33–49  ·  view source on GitHub ↗

Avoid unused-static-function warnings: helpers compiled but not yet used * outside the smoke tests will be referenced in Phase 3+ tests. */

Source from the content-addressed store, hash-verified

31/* Avoid unused-static-function warnings: helpers compiled but not yet used
32 * outside the smoke tests will be referenced in Phase 3+ tests. */
33__attribute__((unused))
34static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
35 int idx = find_resolved(r, callerSub, calleeSub);
36 if (idx < 0) {
37 printf(" MISSING resolved call: caller~%s -> callee~%s (have %d)\n",
38 callerSub, calleeSub, r->resolved_calls.count);
39 for (int i = 0; i < r->resolved_calls.count; i++) {
40 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
41 printf(" %s -> %s [%s %.2f]\n",
42 rc->caller_qn ? rc->caller_qn : "(null)",
43 rc->callee_qn ? rc->callee_qn : "(null)",
44 rc->strategy ? rc->strategy : "(null)",
45 rc->confidence);
46 }
47 }
48 return idx;
49}
50
51/* ── Phase 2 — smoke ───────────────────────────────────────────── */
52

Callers 1

test_py_lsp.cFile · 0.70

Calls 1

find_resolvedFunction · 0.70

Tested by

no test coverage detected