package ounit

  1. Overview
  2. Docs
type test_ctxt = OUnitTest.ctxt
type test_fun = test_ctxt -> unit
type test = OUnitTest.test
type test_length = OUnitTest.test_length
val assert_failure : string -> 'a
val assert_bool : string -> bool -> unit
val assert_string : string -> unit
val assert_command : ?exit_code:Unix.process_status -> ?sinput:char Stream.t -> ?foutput:(char Stream.t -> unit) -> ?use_stderr:bool -> ?backtrace:bool -> ?chdir:string -> ?env:string array -> ctxt:test_ctxt -> string -> string list -> unit
val assert_equal : ?ctxt:test_ctxt -> ?cmp:('a -> 'a -> bool) -> ?printer:('a -> string) -> ?pp_diff:(Format.formatter -> ('a * 'a) -> unit) -> ?msg:string -> 'a -> 'a -> unit
val assert_raises : ?msg:string -> exn -> (unit -> 'a) -> unit
val skip_if : bool -> string -> unit
val todo : string -> unit
val cmp_float : ?epsilon:float -> float -> float -> bool
val bracket : (test_ctxt -> 'a) -> ('a -> test_ctxt -> unit) -> test_ctxt -> 'a
val bracket_tmpfile : ?prefix:string -> ?suffix:string -> ?mode:open_flag list -> test_ctxt -> string * out_channel
val bracket_tmpdir : ?prefix:string -> ?suffix:string -> test_ctxt -> string
val with_bracket_chdir : test_ctxt -> string -> (test_ctxt -> 'a) -> 'a
val (>:) : string -> test -> test
val (>::) : string -> test_fun -> test
val (>:::) : string -> test list -> test
val test_case : ?length:test_length -> test_fun -> test
val test_list : test list -> test
type log_severity = [
  1. | `Error
  2. | `Info
  3. | `Warning
]
val logf : test_ctxt -> log_severity -> ('a, unit, string, unit) format4 -> 'a
val in_testdata_dir : test_ctxt -> string list -> string
val non_fatal : test_ctxt -> (test_ctxt -> unit) -> unit
module Conf : sig ... end
val run_test_tt_main : ?exit:(int -> unit) -> test -> unit
OCaml

Innovation. Community. Security.