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

Function count_calls_exact

tests/test_extraction.c:3701–3708  ·  view source on GitHub ↗

Count calls whose callee_name is exactly `name` (has_call is substring). */

Source from the content-addressed store, hash-verified

3699
3700/* Count calls whose callee_name is exactly `name` (has_call is substring). */
3701static int count_calls_exact(CBMFileResult *r, const char *name) {
3702 int n = 0;
3703 for (int i = 0; i < r->calls.count; i++) {
3704 if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, name) == 0)
3705 n++;
3706 }
3707 return n;
3708}
3709
3710/* (b) A dotted config string must never be extracted as a callee. */
3711TEST(extract_perl_config_string_not_a_callee) {

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected