MCPcopy
hub / github.com/growthbook/growthbook / eff

Function eff

packages/back-end/test/services/rampSchedule.test.ts:298–305  ·  view source on GitHub ↗
(
    sched: ReturnType<typeof sparseSchedule>,
    stepIndex: number,
  )

Source from the content-addressed store, hash-verified

296describe("computeEffectivePatch", () => {
297 // Returns the accumulated patch for TARGET_ID at the given stepIndex, as a plain object.
298 function eff(
299 sched: ReturnType<typeof sparseSchedule>,
300 stepIndex: number,
301 ): Record<string, unknown> {
302 const map = computeEffectivePatch(sched, stepIndex);
303 const { ruleId: _, ...fields } = map.get(TARGET_ID) ?? {};
304 return fields as Record<string, unknown>;
305 }
306
307 it("stepIndex=-1 returns empty map (no steps applied yet)", () => {
308 const sched = sparseSchedule([

Callers 1

Calls 2

computeEffectivePatchFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected