MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / instrumented

Function instrumented

packages/core/execution/src/engine.test.ts:209–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207// every complete stringify of the value visits the probe exactly once.
208describe("execute outcome measurement cost", () => {
209 const instrumented = () => {
210 let walks = 0;
211 const probe = {
212 toJSON: () => {
213 walks += 1;
214 return "probe";
215 },
216 };
217 return { value: { data: [1, 2, 3], probe }, walks: () => walks };
218 };
219
220 const executorFor = (result: ExecuteResult): CodeExecutor<FakeRuntimeError> => ({
221 execute: () => Effect.succeed(result),

Callers 1

engine.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected