package ounit2

  1. Overview
  2. Docs

Utilities for OUnit

  • author Sylvain Le Gall
val is_blank : char -> bool
val trim : string -> string
val trim_comment : string -> string
val split_lines : string -> string list
val starts_with : prefix:string -> string -> bool
val start_substr : prefix:string -> string -> bool * string
val extract_backtrace_position : string -> (string * int) option list
val cmp_float : ?epsilon:float -> float -> float -> bool
val buff_format_printf : (Format.formatter -> 'a) -> string
val mapi : ('a -> int -> 'b) -> 'c list -> 'd list
val fold_lefti : ('a -> 'b -> int -> 'c) -> 'd -> 'e list -> 'f
val now : unit -> float
val time_fun : ('a -> 'b) -> 'c -> float * 'd
val date_iso8601 : ?tz:bool -> float -> string
val buildir : string
val failwithf : ('a, unit, string, 'b) format4 -> 'c
val opt : ('a -> unit) -> 'b option -> unit
val fqdn : unit -> string
val shardf : int -> string
val string_of_process_status : Unix.process_status -> string
val make_counter : unit -> (unit -> ('a * int) list) * ('b -> unit)
OCaml

Innovation. Community. Security.