package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.test-helpers/Tezos_test_helpers/Qcheck_helpers/MakeMapArb/index.html
Module Qcheck_helpers.MakeMapArb
Source
Map-related arbitraries/generators.
Parameters
Signature
val arb_of_size :
int QCheck.Gen.t ->
Map.key QCheck.arbitrary ->
'v QCheck.arbitrary ->
'v Map.t QCheck.arbitrary
arb_of_size size_gen key_arb val_arb
is an arbitrary of Map where the keys are generated with key_arb
and the values with val_arb
.
The number of entries in the map is decided by size_gen
.
The arbitrary shrinks on the number of entries as well as on entries if either the key or value arbitrary has a shrinker.
arb key_arb val_arb
is an arbitrary of Map where the keys are generated with key_arb
and the values with val_arb
.
The arbitrary shrinks on the number of entries as well as on entries if either the key or value arbitrary has a shrinker.
val gen_of_size :
int QCheck.Gen.t ->
Map.key QCheck.Gen.t ->
'v QCheck.Gen.t ->
'v Map.t QCheck.Gen.t
gen_of_size size_gen key_gen val_gen
is a generator of Map where the keys are generated with key_gen
and the values with val_gen
. The number of entries in the map is decided by size_gen
.
gen key_gen arb_gen
is a generator of Map where the keys are generated with key_arb
and the values with val_arb
.