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

Function count_calls_named

tests/test_parse_coverage.c:1255–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1253}
1254
1255static int count_calls_named(const CBMFileResult *r, const char *name) {
1256 int n = 0;
1257 for (int i = 0; i < r->calls.count; i++) {
1258 if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, name) == 0) {
1259 n++;
1260 }
1261 }
1262 return n;
1263}
1264
1265/* The same source parsed with the row exclusion and without it (test seam). */
1266static CBMFileResult *extract_sql_full(const char *src, const char *path) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected