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

Function find_confident

tests/test_rust_lsp.c:74–84  ·  view source on GitHub ↗

Confident = confidence >= the LSP override floor (0.6). */

Source from the content-addressed store, hash-verified

72
73/* Confident = confidence >= the LSP override floor (0.6). */
74static int find_confident(const CBMResolvedCallArray *arr, const char *callerSub,
75 const char *calleeSub) {
76 for (int i = 0; i < arr->count; i++) {
77 const CBMResolvedCall *rc = &arr->items[i];
78 if (rc->confidence >= 0.6f && rc->caller_qn && strstr(rc->caller_qn, callerSub) &&
79 rc->callee_qn && strstr(rc->callee_qn, calleeSub)) {
80 return i;
81 }
82 }
83 return -1;
84}
85
86/* ── Category 1: Free function calls + module path ─────────────── */
87

Callers 1

test_rust_lsp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected