package octez-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-libs.test-helpers/Tezos_test_helpers/Qcheck_extra/Stateful_gen/Make/index.html
Module Stateful_gen.MakeSource
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.