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

Function call_tool_timed

tests/test_incremental.c:929–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927 * ══════════════════════════════════════════════════════════════════ */
928
929static char *call_tool_timed(const char *tool, double *ms, const char *args_fmt, ...) {
930 char args[2048];
931 va_list ap;
932 va_start(ap, args_fmt);
933 vsnprintf(args, sizeof(args), args_fmt, ap);
934 va_end(ap);
935 double t0 = now_ms();
936 char *resp = cbm_mcp_handle_tool(g_srv, tool, args);
937 *ms = now_ms() - t0;
938 return resp;
939}
940
941/* Check if ALL results have a specific label (validates label filter works) */
942static int all_results_have_label(const char *resp, const char *label) {

Callers 1

test_incremental.cFile · 0.85

Calls 2

cbm_mcp_handle_toolFunction · 0.85
now_msFunction · 0.70

Tested by

no test coverage detected