(path)
| 280 | } |
| 281 | |
| 282 | function loadBenchRun(path) { |
| 283 | const raw = readJson(path, "results"); |
| 284 | if (!isPlainObject(raw) || !Array.isArray(raw.results)) { |
| 285 | fail(`results: ${path} must be a benchmark run object with a results[] array`); |
| 286 | } |
| 287 | return raw; |
| 288 | } |
| 289 | |
| 290 | async function loadTerminalScenarioManifest() { |
| 291 | if (!existsSync(BENCH_SCENARIO_INDEX_PATH)) { |
no test coverage detected