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

Function has_call

tests/test_extraction.c:37–43  ·  view source on GitHub ↗

Check if any call to the given callee exists. */

Source from the content-addressed store, hash-verified

35
36/* Check if any call to the given callee exists. */
37static int has_call(CBMFileResult *r, const char *callee) {
38 for (int i = 0; i < r->calls.count; i++) {
39 if (strstr(r->calls.items[i].callee_name, callee) != NULL)
40 return 1;
41 }
42 return 0;
43}
44
45/* Check if any import with the given module path exists. */
46static int __attribute__((unused)) has_import(CBMFileResult *r, const char *path_substr) {

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected