Datasourceforcryptocurrency / node_modules /fast-check /lib /check /model /commands /CommandsIterable.js
Download node_modules/fast-check/lib/check/model/commands/CommandsIterable.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandsIterable.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandsIterable.js
-
curl -L -o CommandsIterable.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/check/model/commands/CommandsIterable.js
907 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.CommandsIterable = void 0; | |
| const symbols_1 = require("../../symbols"); | |
| class CommandsIterable { | |
| constructor(commands, metadataForReplay) { | |
| this.commands = commands; | |
| this.metadataForReplay = metadataForReplay; | |
| } | |
| [Symbol.iterator]() { | |
| return this.commands[Symbol.iterator](); | |
| } | |
| [symbols_1.cloneMethod]() { | |
| return new CommandsIterable(this.commands.map((c) => c.clone()), this.metadataForReplay); | |
| } | |
| toString() { | |
| const serializedCommands = this.commands | |
| .filter((c) => c.hasRan) | |
| .map((c) => c.toString()) | |
| .join(','); | |
| const metadata = this.metadataForReplay(); | |
| return metadata.length !== 0 ? `${serializedCommands} /*${metadata}*/` : serializedCommands; | |
| } | |
| } | |
| exports.CommandsIterable = CommandsIterable; | |