MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isFullRange

Function isFullRange

packages/agent-core/src/tools/cron/cron-expr.ts:410–414  ·  view source on GitHub ↗
(set: ReadonlySet<number>, min: number, max: number)

Source from the content-addressed store, hash-verified

408}
409
410function isFullRange(set: ReadonlySet<number>, min: number, max: number): boolean {
411 if (set.size !== max - min + 1) return false;
412 for (let v = min; v <= max; v++) if (!set.has(v)) return false;
413 return true;
414}
415
416/**
417 * If the set looks like `{min, min+step, ..., <=max}` with a constant

Callers 1

cronToHumanFunction · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected