MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / runTest

Function runTest

test/test-e2e.ts:394–409  ·  view source on GitHub ↗
(name: string, fn: () => Promise<string | void>)

Source from the content-addressed store, hash-verified

392}
393
394async function runTest(name: string, fn: () => Promise<string | void>): Promise<boolean> {
395 process.stdout.write(` ${name} ... `);
396 try {
397 const detail = await fn();
398 if (detail) process.stdout.write(`${detail} `);
399 console.log("PASS");
400 results.push({ name, status: "PASS" });
401 return true;
402 } catch (err) {
403 const message = err instanceof Error ? err.message : String(err);
404 console.log("FAIL");
405 console.error(` ${message}`);
406 results.push({ name, status: "FAIL", error: message });
407 return false;
408 }
409}
410
411function skipTest(name: string, reason: string): void {
412 console.log(` ${name} ... SKIP (${reason})`);

Callers 2

runLocalSuiteFunction · 0.70
runLiveSuiteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected