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

Function has_call

tests/test_extraction.c:34–40  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

32
33/* Check if any call to the given callee exists. */
34static int has_call(CBMFileResult *r, const char *callee) {
35 for (int i = 0; i < r->calls.count; i++) {
36 if (strstr(r->calls.items[i].callee_name, callee) != NULL)
37 return 1;
38 }
39 return 0;
40}
41
42/* Check if any import with the given module path exists. */
43static 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