MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / assertRequiredFrameFillVariants

Function assertRequiredFrameFillVariants

scripts/bench-ci-compare.mjs:313–327  ·  view source on GitHub ↗
(requiredScenarios)

Source from the content-addressed store, hash-verified

311}
312
313function assertRequiredFrameFillVariants(requiredScenarios) {
314 const keys = new Set(requiredScenarios.map((d) => d.key));
315 for (const required of REQUIRED_FRAME_FILL_VARIANTS) {
316 const key = makeDescriptorKey(required.scenario, required.framework, required.params);
317 if (!keys.has(key)) {
318 throw new Error(
319 [
320 "requiredScenarios must explicitly include terminal-frame-fill variants:",
321 "- scenario=terminal-frame-fill framework=rezi-native params={rows:40,cols:120,dirtyLines:1}",
322 "- scenario=terminal-frame-fill framework=rezi-native params={rows:40,cols:120,dirtyLines:40}",
323 ].join("\n"),
324 );
325 }
326 }
327}
328
329export function normalizeComparatorConfig(rawConfig) {
330 if (!isPlainObject(rawConfig)) {

Callers 1

Calls 2

makeDescriptorKeyFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected