MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / runCase

Function runCase

scripts/agent-eval/probe-named-symbol.mjs:95–104  ·  view source on GitHub ↗
(root, { query, symbols })

Source from the content-addressed store, hash-verified

93}
94
95async function runCase(root, { query, symbols }) {
96 const cg = CodeGraph.openSync(root);
97 try {
98 const res = await new ToolHandler(cg).execute('codegraph_explore', { query });
99 const response = res.content?.[0]?.text ?? '';
100 return { response, results: check(cg, response, symbols) };
101 } finally {
102 try { cg.close?.(); } catch { /* already closed */ }
103 }
104}
105
106const argv = process.argv.slice(2);
107const verbose = argv.includes('--verbose');

Callers 1

Calls 4

executeMethod · 0.80
checkFunction · 0.70
closeMethod · 0.65
openSyncMethod · 0.45

Tested by

no test coverage detected