QCheck.TestModule related to individual tests.
and the type 'a cell was made a private implementation detail.
type 'a event = 'a QCheck2.Test.event = | Generating |
| Collecting of 'a |
| Testing of 'a |
| Shrunk of int * 'a |
| Shrinking of int * int * 'a |
type 'a cell = 'a QCheck2.Test.celltype 'a handler = 'a QCheck2.Test.handlertype 'a step = 'a QCheck2.Test.steptype 'a callback = 'a QCheck2.Test.callbacktype t = QCheck2.Test.tFormat version of fail_report
val make_cell :
?if_assumptions_fail:([ `Fatal | `Warning ] * float) ->
?count:int ->
?long_factor:int ->
?max_gen:int ->
?max_fail:int ->
?small:( 'a -> int ) ->
?name:string ->
'a arbitrary ->
( 'a -> bool ) ->
'a cellmake_cell arb prop builds a test that checks property prop on instances of the generator arb.
val get_law : 'a cell -> 'a -> boolval get_name : _ cell -> stringval set_name : _ cell -> string -> unitval get_count : _ cell -> intGet the count of a cell.
val get_long_factor : _ cell -> intGet the long factor of a cell.
val make :
?if_assumptions_fail:([ `Fatal | `Warning ] * float) ->
?count:int ->
?long_factor:int ->
?max_gen:int ->
?max_fail:int ->
?small:( 'a -> int ) ->
?name:string ->
'a arbitrary ->
( 'a -> bool ) ->
tmake arb prop builds a test that checks property prop on instances of the generator arb. See make_cell for a description of the parameters.
include module type of QCheck2.Test_exceptionsException raised when a test failed, with the list of counter-examples. Test_fail (name, l) means test name failed on elements of l.
val print_instance : 'a cell -> 'a -> stringval print_c_ex : 'a cell -> 'a TestResult.counter_ex -> stringval print_fail : 'a cell -> string -> 'a TestResult.counter_ex list -> stringval print_error :
?st:string ->
'a cell ->
string ->
('a TestResult.counter_ex * exn) ->
stringval check_cell :
?long:bool ->
?call:'a callback ->
?step:'a step ->
?handler:'a handler ->
?rand:Stdlib.Random.State.t ->
'a cell ->
'a TestResult.tval check_exn : ?long:bool -> ?rand:Stdlib.Random.State.t -> t -> unit