You can search for identifiers within the package.
in-package search v0.2.0
Source file platform.ml
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667open!ImportmoduletypeS=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. *)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. *)valstdout_columns:unit->intoption(** [stdout_columns ()] is the current width of [stdout] in columns, or [None]
if no width can be determined (e.g. [stdout] is not a TTY). *)valsetup_std_outputs:?style_renderer:Fmt.style_renderer->?utf_8:bool->Formatters.stdout->Formatters.stderr->unit(** [setup_std_outputs ~style_renderer ~utf_8 stdout stderr] is called at
startup of alcotest and sets up the standard streams for colored output.
*)vallog_trap_supported:bool(** Whether or not the test runner should trap test logs. The following
functions are used iff this is set to [true]. *)valprepare_log_trap:root:string->suite:string->uuid:string->string(** [prepare_log_trap ~root ~suite ~uuid] is called before test suite
execution. It creates a directory for the logs of the run of [suite] with
ID [uuid] under [root/run/suite], makes [root/latest] point to it if
possible, and returns it. *)typefile_descriptorvalfile_exists:string->boolvalopen_write_only:string->file_descriptorvalclose:file_descriptor->unitvalwith_redirect:file_descriptor->(unit->'apromise)->'apromise(** [with_redirect fd f] is called for each test. On Unix, it deals with
redirection of standard streams to the [fd]. *)valhome_directory:unit->(string,[`Msgofstring])result(** [home_directory ()] is the current user's HOME directory, if it exists. *)valtimestamp:float->string(** [timestamp t] is [t], in seconds since the epoch, as a UTC ISO 8601 date
and time such as [2026-11-02T10:00:00Z]. *)valwrite_file:string->string->unit(** [write_file path contents] replaces the file at [path] with [contents],
creating its directory if needed. On a platform without a file system, it
does nothing.
@raise Sys_error if the file cannot be written. *)endmoduletypeMAKER=functor(M:Monad.S)->Swithtype'apromise:='aM.t