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

Function has_function

tests/test_incremental.c:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186static int has_function(const char *name_pattern) {
187 char *resp = call_tool("search_graph",
188 "{\"project\":\"%s\",\"label\":\"Function\",\"name_pattern\":\"%s\"}",
189 g_project, name_pattern);
190 int total = count_in_response(resp, "total");
191 free(resp);
192 return total > 0;
193}
194
195static int count_by_label(const char *label) {
196 char *resp =

Callers 1

test_incremental.cFile · 0.85

Calls 2

count_in_responseFunction · 0.85
call_toolFunction · 0.70

Tested by

no test coverage detected