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

Function call_tool_timed

tests/test_incremental.c:1018–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016 * ══════════════════════════════════════════════════════════════════ */
1017
1018static char *call_tool_timed(const char *tool, double *ms, const char *args_fmt, ...) {
1019 char args[2048];
1020 va_list ap;
1021 va_start(ap, args_fmt);
1022 vsnprintf(args, sizeof(args), args_fmt, ap);
1023 va_end(ap);
1024 double t0 = now_ms();
1025 char *resp = cbm_mcp_handle_tool(g_srv, tool, args);
1026 *ms = now_ms() - t0;
1027 return resp;
1028}
1029
1030/* Check if ALL results have a specific label (validates label filter works) */
1031static 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