MCPcopy Create free account
hub / github.com/EvoMap/evolver / readRows

Function readRows

test/proxyChatCompletionsE2E.test.js:68–78  ·  view source on GitHub ↗
(expected = 1)

Source from the content-addressed store, hash-verified

66 });
67
68 const readRows = async (expected = 1) => {
69 let lines = [];
70 for (let i = 0; i < 150; i++) {
71 if (fs.existsSync(traceFile)) {
72 lines = fs.readFileSync(traceFile, 'utf8').trim().split('\n').filter(Boolean);
73 if (lines.length >= expected) break;
74 }
75 await sleep(20);
76 }
77 return lines.map((l) => JSON.parse(l));
78 };
79
80 try {
81 await run({ call, readRows });

Callers 1

Calls 2

parseMethod · 0.80
sleepFunction · 0.70

Tested by

no test coverage detected