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

Function readRows

test/proxyGeminiE2E.test.js:79–89  ·  view source on GitHub ↗
(expected = 2)

Source from the content-addressed store, hash-verified

77 });
78
79 const readRows = async (expected = 2) => {
80 let lines = [];
81 for (let i = 0; i < 150; i++) {
82 if (fs.existsSync(traceFile)) {
83 lines = fs.readFileSync(traceFile, 'utf8').trim().split('\n').filter(Boolean);
84 if (lines.length >= expected) break;
85 }
86 await sleep(20);
87 }
88 return lines.map((l) => JSON.parse(l));
89 };
90
91 try {
92 await run({ call, readRows });

Callers 1

Calls 2

parseMethod · 0.80
sleepFunction · 0.70

Tested by

no test coverage detected