Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
11
node_modules/fast-check/lib/arbitrary/commands.js
generated
vendored
Normal file
11
node_modules/fast-check/lib/arbitrary/commands.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.commands = commands;
|
||||
const CommandsArbitrary_1 = require("./_internals/CommandsArbitrary");
|
||||
const MaxLengthFromMinLength_1 = require("./_internals/helpers/MaxLengthFromMinLength");
|
||||
function commands(commandArbs, constraints = {}) {
|
||||
const { size, maxCommands = MaxLengthFromMinLength_1.MaxLengthUpperBound, disableReplayLog = false, replayPath = null } = constraints;
|
||||
const specifiedMaxCommands = constraints.maxCommands !== undefined;
|
||||
const maxGeneratedCommands = (0, MaxLengthFromMinLength_1.maxGeneratedLengthFromSizeForArbitrary)(size, 0, maxCommands, specifiedMaxCommands);
|
||||
return new CommandsArbitrary_1.CommandsArbitrary(commandArbs, maxGeneratedCommands, maxCommands, replayPath, disableReplayLog);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue