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

Function count_resolved

tests/test_go_lsp.c:54–63  ·  view source on GitHub ↗

Count resolved calls matching pattern */

Source from the content-addressed store, hash-verified

52
53/* Count resolved calls matching pattern */
54static int count_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
55 int n = 0;
56 for (int i = 0; i < r->resolved_calls.count; i++) {
57 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
58 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
59 strstr(rc->callee_qn, calleeSub))
60 n++;
61 }
62 return n;
63}
64
65/* Search cross-file resolved calls array */
66static int find_resolved_arr(const CBMResolvedCallArray *arr, const char *callerSub,

Callers 1

test_go_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected