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

Function find_confident

tests/test_rust_lsp.c:115–125  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

113
114/* Confident = confidence >= the LSP override floor (0.6). */
115static int find_confident(const CBMResolvedCallArray *arr, const char *callerSub,
116 const char *calleeSub) {
117 for (int i = 0; i < arr->count; i++) {
118 const CBMResolvedCall *rc = &arr->items[i];
119 if (rc->confidence >= 0.6f && rc->caller_qn && strstr(rc->caller_qn, callerSub) &&
120 rc->callee_qn && strstr(rc->callee_qn, calleeSub)) {
121 return i;
122 }
123 }
124 return -1;
125}
126
127static int count_confident_strategy(const CBMResolvedCallArray *arr, const char *strategy) {
128 int count = 0;

Callers 1

test_rust_lsp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected