MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / inWindow

Function inWindow

src/lib/bundle.ts:293–293  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

291 const failedIdx = ctx.result.failedStepIndex;
292 if (failedIdx === null) return ctx;
293 const inWindow = (idx: number) => Math.abs(idx - failedIdx) <= FAILED_ONLY_RADIUS;
294 const filteredSteps = ctx.steps.filter(s => inWindow(s.stepIndex));
295 const filteredEvidence = ctx.failure.evidence.filter(e => inWindow(e.stepIndex));
296 return {

Callers 1

applyFailedOnlyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected