package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-libs.test-helpers/Tezos_test_helpers/Qcheck_helpers/MakeMapArb/index.html

Module Qcheck_helpers.MakeMapArbSource

Map-related arbitraries/generators.

Parameters

module Map : Map.S

Signature

Sourceval 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.

Sourceval arb : Map.key QCheck.arbitrary -> 'v QCheck.arbitrary -> 'v Map.t QCheck.arbitrary

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.

Sourceval 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.

Sourceval gen : Map.key QCheck.Gen.t -> 'v QCheck.Gen.t -> 'v Map.t QCheck.Gen.t

gen key_gen arb_gen is a generator of Map where the keys are generated with key_arb and the values with val_arb.

Sourceval shrink : ?key:Map.key QCheck.Shrink.t -> ?value:'v QCheck.Shrink.t -> 'v Map.t QCheck.Shrink.t

shrink ?key ?value shrinks a Map using the optional key and value shrinkers. Shrinking first attempts smaller Maps (less entries), then shrinks keys and values.

OCaml

Innovation. Community. Security.