MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / makeRun

Function makeRun

test/bench_diff.test.js:16–27  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

14const DIFF = path.join(__dirname, '..', 'bench', 'diff.js');
15
16function makeRun(results) {
17 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'bench-diff-'));
18 const file = path.join(dir, 'run.json');
19 fs.writeFileSync(file, JSON.stringify({
20 runId: 'fake',
21 suite: 'smoke',
22 model: 'mock',
23 summary: { passed: results.filter((r) => r.passed).length, total: results.length, totalMs: 0, meanMs: 0 },
24 results,
25 }, null, 2));
26 return file;
27}
28
29// ─── unit ───────────────────────────────────────────────────────────────────
30

Callers 1

bench_diff.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected