package speed

  1. Overview
  2. Docs

Parameters

module T : TEST_RESULT

Signature

module Dom : sig ... end
include module type of struct include Dom end
type test_result = T.t
type !'a0 test_function = 'a test_input -> test_result
type !'a example = 'a Make(T).example = {
  1. name : string;
  2. focus : bool;
  3. metadata : Metadata.t list;
  4. f : 'a0 test_function;
}
type !'a t = 'a Make(T).t = {
  1. name : string option;
  2. child_groups : 'a0 child_suite list;
  3. metadata : Metadata.t list;
  4. examples : 'a1 example list;
  5. has_focused : bool;
}
and !'a child_suite = 'a Make(T).child_suite =
  1. | Child : {
    1. child : 'b t;
    2. setup : 'a0 test_input -> 'b0;
    } -> 'a1 child_suite
  2. | Context : {
    1. child : 'a2 t;
    } -> 'a3 child_suite
include sig ... end
val empty : 'a Dom.t
val make_suite : ?name:string -> ?metadata:Metadata.t list -> unit -> 'a Dom.t
val make : string -> 'a Dom.t
val add_example : ?focus:bool -> ?metadata:Metadata.t list -> string -> 'a Dom.test_function -> 'b Dom.t -> 'c Dom.t
val add_child : 'a Dom.child_suite -> 'b Dom.t -> 'c Dom.t
val add_child_group : 'a Dom.t -> 'b Dom.t -> 'b Dom.t
val add_child_group_with_setup : setup:('a test_input -> 'b) -> 'c Dom.t -> 'd Dom.t -> 'd Dom.t
val add_fixture : ?name:string -> ?metadata:Metadata.t list -> setup:('a test_input -> 'b) -> ('c Dom.t -> 'd Dom.t) -> 'e Dom.t -> 'e Dom.t
val add_context : ?metadata:Metadata.t list -> string -> ('a Dom.t -> 'b Dom.t) -> 'b Dom.t -> 'b Dom.t
val get_example_count : 'a Dom.t -> int
val child_group_count : 'a Dom.t -> int
OCaml

Innovation. Community. Security.