package speed
Module Speed_runnerSource
Source
module Make
(D : Domain.DOMAIN)
(Runner :
ExampleRunner.EXAMPLE_RUNNER with type test_function = unit D.test_function) :
sig ... endinclude module type of struct include SyncRunner end
Source
type (!'a, !'b) setup_stack =
('a, 'b) Make(Domain.Sync)(ExampleRunner.SyncRunner).setup_stack =
| Root : (unit Domain.test_input -> 'a0) -> (unit, 'a0) setup_stack| Stack : ('a1, 'b0) setup_stack * ('b0 Domain.test_input -> 'c) -> ('a1, 'c) setup_stack
Source
val start_group :
string option ->
Format.formatter ->
suite_result ->
(suite_result -> ('a -> 'b) -> 'c) ->
('a -> 'b) ->
'cSource
val start_example :
string ->
Format.formatter ->
suite_result ->
(suite_result -> (suite_result -> ExampleRunner.test_outcome -> 'a) -> 'b) ->
(suite_result -> 'a) ->
'bSource
val run_ex :
Format.formatter ->
suite_result ->
'a Domain.Sync.example ->
Speed_domain.Metadata.t list ->
(unit, 'a) setup_stack ->
(suite_result -> 'b ExampleRunner.SyncRunner.cont_result) ->
'b ExampleRunner.SyncRunner.cont_resultSource
val run_child_suite :
Format.formatter ->
suite_result ->
'a Domain.Sync.t ->
metadata list ->
(unit, 'a) setup_stack ->
'b ExampleRunner.SyncRunner.cont_result continuationSource
val run_suite_return :
?fmt:Format.formatter ->
unit Domain.Sync.t ->
suite_result ExampleRunner.SyncRunner.cont_resultSource
val run_suites :
fmt:Format.formatter ->
unit Domain.Sync.t ->
unit Domain.LwtDomain.t ->
suite_resultThis runs the test suite and exits the program. If the test suite is successful, it will exit with exit code zero, otherwise it will exit with exit code 1.