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

Function require_resolved

tests/test_py_lsp.c:36–52  ·  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

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

Callers 1

test_py_lsp.cFile · 0.70

Calls 1

find_resolvedFunction · 0.70

Tested by

no test coverage detected