MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / assertBinary

Function assertBinary

scripts/bench/agent-control-benchmark.mjs:1122–1130  ·  view source on GitHub ↗
(filePath, hint)

Source from the content-addressed store, hash-verified

1120}
1121
1122function assertBinary(filePath, hint) {
1123 const result = spawnSync(filePath, ["--version"], {
1124 encoding: "utf8",
1125 timeout: 5000,
1126 });
1127 if (result.error) {
1128 throw new Error(`${filePath} is not runnable. ${hint}`);
1129 }
1130}
1131
1132function buildReport(metadata, rawRows) {
1133 const groups = new Map();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected