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

Function cov_find

tests/test_java_lsp_coverage.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static int cov_find(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
54 for (int i = 0; i < r->resolved_calls.count; i++) {
55 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
56 if (rc->confidence < 0.5f) continue;
57 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
58 strstr(rc->callee_qn, calleeSub)) {
59 return i;
60 }
61 }
62 return -1;
63}
64
65static int cov_require(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
66 int idx = cov_find(r, callerSub, calleeSub);

Callers 1

cov_requireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected