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

Function count_defs_with_label

tests/test_extraction.c:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static int count_defs_with_label(CBMFileResult *r, const char *label) {
69 int count = 0;
70 for (int i = 0; i < r->defs.count; i++) {
71 if (strcmp(r->defs.items[i].label, label) == 0)
72 count++;
73 }
74 return count;
75}
76
77/* Convenience: extract, assert no error, return result. Caller frees. */
78static CBMFileResult *extract(const char *src, CBMLanguage lang, const char *proj,

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected