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

Function makeFailingExecTracker

test/forceUpdateIdempotent.test.js:47–55  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

45}
46
47function makeFailingExecTracker(message) {
48 const calls = [];
49 const stub = function (bin, args) {
50 calls.push({ bin, args: Array.isArray(args) ? args.slice() : [] });
51 throw new Error(message);
52 };
53 stub.calls = calls;
54 return stub;
55}
56
57function commandName(bin) {
58 return String(bin || '').split(/[\\/]/).pop().toLowerCase();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected