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

Function count_calls_exact

tests/test_extraction.c:3752–3759  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3750
3751/* Count calls whose callee_name is exactly `name` (has_call is substring). */
3752static int count_calls_exact(CBMFileResult *r, const char *name) {
3753 int n = 0;
3754 for (int i = 0; i < r->calls.count; i++) {
3755 if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, name) == 0)
3756 n++;
3757 }
3758 return n;
3759}
3760
3761/* (b) A dotted config string must never be extracted as a callee. */
3762TEST(extract_perl_config_string_not_a_callee) {

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected