Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file test_intf.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475open!BasemoduletypeS=sigtypet[@@derivingsexp_of]valquickcheck_generator:tGenerator.tvalquickcheck_shrinker:tShrinker.tendmoduletypeTest=sigmoduletypeS=SmoduleConfig:sigmoduleSeed:sigtypet=|Nondeterministic|Deterministicofstring[@@derivingsexp_of]endtypet={seed:Seed.t(** [seed] is used to initialize the pseudo-random state before running tests of a
property. *);test_count:int(** [test_count] determines how many random values to test a property with. *);shrink_count:int(** [shrink_count] determines the maximum number of attempts to find a smaller
version of a value that fails a test. *);sizes:intSequence.t(** [sizes] determines the progression of value sizes to generate while testing.
Testing fails if [sizes] is not of length at least [test_count]. *)}[@@derivingfields,sexp_of]end(** Defaults to a deterministic seed, [shrink_count] and [test_count] of 10_000 each,
and sizes ranging from 0 to 30. *)valdefault_config:Config.t(** Tests the property [f], failing if it raises or returns [Error _]. Tests [f] first
with any [examples], then with values from the given generator. Only random values
count toward the [test_count] total, not values from [examples]. *)valrun:f:('a->unitOr_error.t)->?config:Config.t(** defaults to [default_config] *)->?examples:'alist(** defaults to the empty list *)->(moduleSwithtypet='a)->unitOr_error.t(** Like [run], but raises on failure. *)valrun_exn:f:('a->unit)->?config:Config.t(** defaults to [default_config] *)->?examples:'alist(** defaults to the empty list *)->(moduleSwithtypet='a)->unit(** Calls [f] with the sequence of values that [run] would get in the same
configuration. *)valwith_sample:f:('aSequence.t->unitOr_error.t)->?config:Config.t(** defaults to [default_config] *)->?examples:'alist(** defaults to the empty list *)->'aGenerator.t->unitOr_error.t(** Like [with_sample], but raises on failure. *)valwith_sample_exn:f:('aSequence.t->unit)->?config:Config.t(** defaults to [default_config] *)->?examples:'alist(** defaults to the empty list *)->'aGenerator.t->unitend