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

Function assert

test/resilience-errors.ts:26–34  ·  view source on GitHub ↗
(condition: boolean, msg: string)

Source from the content-addressed store, hash-verified

24let failed = 0;
25
26function assert(condition: boolean, msg: string) {
27 if (condition) {
28 console.log(` ✓ ${msg}`);
29 passed++;
30 } else {
31 console.error(` ✗ FAIL: ${msg}`);
32 failed++;
33 }
34}
35
36function sleep(ms: number): Promise<void> {
37 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 5

testEpipeErrorFunction · 0.70
testEconnresetFunction · 0.70
testClientTimeoutFunction · 0.70
testMalformedHttpFunction · 0.70
testMemoryPressureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected