package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-libs.test-helpers/Tezos_test_helpers/Qcheck_extra/Stateful_gen/Make/index.html
Module Stateful_gen.Make
Source
Produces a pseudo-random generator that can execute side-effects in an underlying Monad.S
.
Applied to Identity
this is similar to QCheck.Gen
.
This is a straight RNG without shrinking.
Parameters
Signature
include Monad.S
include Applicative.S
Map a binary function over the given value.
Run a predetermined generator for each element in a list, and combine the result with the list element.
See traverse
for a more general form.
Produce a generator for each element in a list.
Return a generator that picks and invokes one of the given generators, uniformly distributed.
Convert a QCheck_extra
generator to a QCheck
generator.
The QCheck generator is run once once and the result is used as the seed of the given generator.
Warning Because Stdlib.Random.Gen
and QCheck.Gen
have mutable state, you must make sure this is only called once, to get predictable results.