Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file platform.ml
1234567891011121314151617181920212223242526272829303132333435363738moduletypeS=sigvaltime:unit->float(** [time ()] returns the current timestamp, used to measure the duration of a
testrun. *)valgetcwd:unit->string(** [getcwd ()] returns the current working directory. *)valprepare:base:string->dir:string->name:string->unit(** [prepare ~base ~dir ~name] is called before test suite execution. [base]
is the parent of the log directory, [dir] the log directory (including
unique testrun ID), and [name] is the test name. On Unix, this function
creates the log directory [dir] for the test output, and sets up the
symlink [latest] to the latest result. *)type'apromise(** The type of monadic actions handled by {!with_redirect}. *)valstdout_isatty:unit->bool(** Return [true] if standard output refers to a terminal or console window,
[false] otherwise. *)valwith_redirect:string->(unit->'apromise)->'apromise(** [with_redirect output_file f] is called for each test. On Unix, it it
deals with redirection of standard streams to the [output_file]. The
implementation of [with_redirect] has to make sure to call [f] in order to
run the test case. *)valsetup_std_outputs:?style_renderer:Fmt.style_renderer->?utf_8:bool->unit->unit(** [setup_std_outputs ~style_renderer ~utf_8 ()] is called at startup of
alcotest and sets up the standard streams for colored output. *)valhome_directory:unit->(string,[`Msgofstring])result(** [home_directory ()] is the current user's HOME directory, if it exists. *)endmoduletypeMAKER=functor(M:Monad.S)->Swithtype'apromise:='aM.t