MCPcopy
hub / github.com/7836246/cursor2api / runTest

Function runTest

test/unit-openai-log-summary.mjs:105–116  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

103}
104
105async function runTest(name, fn) {
106 try {
107 resetLogs();
108 await fn();
109 console.log(` ✅ ${name}`);
110 passed++;
111 } catch (e) {
112 console.error(` ❌ ${name}`);
113 console.error(` ${e.message}`);
114 failed++;
115 }
116}
117
118console.log('\n📦 [1] summary 落盘模式回归\n');
119

Callers 1

Calls 3

logMethod · 0.80
errorMethod · 0.80
resetLogsFunction · 0.70

Tested by

no test coverage detected