package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-v2.2.4.tbz
sha256=b5c069a5d957220ca0669e945f1e81e6b6db9622766d860913e136e1168e3345
sha512=d69dc501a360c31f7854322b5e2c2abcb1e43890737e1cc00c167ee104d5dee471b6b8d8186f8044b0482c91a8f15210a25d833a1e03ed7baabfba923815962f

doc/ounit2.advanced/OUnitLogger/index.html

Module OUnitLoggerSource

Sourcetype position = {
  1. filename : string;
  2. line : int;
}
Sourcetype log_severity = [
  1. | `Error
  2. | `Warning
  3. | `Info
]

See OUnit.mli.

Sourcetype 'result test_event =
  1. | EStart
  2. | EEnd
  3. | EResult of 'result
  4. | ELog of log_severity * string
  5. | ELogRaw of string

See OUnit.mli.

Sourcetype ('path, 'result) result_full = 'path * 'result * position option
Sourcetype ('path, 'result) global_event =
  1. | GConf of string * string
    (*

    Dump a configuration options.

    *)
  2. | GLog of log_severity * string
  3. | GStart
    (*

    Start running the tests.

    *)
  4. | GEnd
    (*

    Finish running the tests.

    *)
  5. | GResults of float * ('path, 'result) result_full list * int

Events which occur at the global level.

Sourcetype ('path, 'result) log_event_t =
  1. | GlobalEvent of ('path, 'result) global_event
  2. | TestEvent of 'path * 'result test_event
Sourcetype ('path, 'result) log_event = {
  1. shard : string;
  2. timestamp : float;
  3. event : ('path, 'result) log_event_t;
}
Sourcetype ('path, 'result) logger = {
  1. lshard : string;
  2. fwrite : ('path, 'result) log_event -> unit;
  3. fpos : unit -> position option;
  4. fclose : unit -> unit;
}
Sourceval shard_default : string
Sourceval string_of_event : ('a, 'b) log_event_t -> string
Sourceval null_logger : ('a, 'b) logger
Sourceval fun_logger : (('a, 'b) log_event -> unit) -> (unit -> unit) -> ('a, 'b) logger
Sourceval post_logger : (('a, 'b) log_event list -> unit) -> ('a, 'b) logger
Sourceval set_shard : string -> ('a, 'b) logger -> ('a, 'b) logger
Sourceval report : ('a, 'b) logger -> ('a, 'b) log_event_t -> unit
Sourceval infof : ('a, 'b) logger -> ('c, unit, string, unit) format4 -> 'c
Sourceval warningf : ('a, 'b) logger -> ('c, unit, string, unit) format4 -> 'c
Sourceval errorf : ('a, 'b) logger -> ('c, unit, string, unit) format4 -> 'c
Sourceval position : ('a, 'b) logger -> position option
Sourceval close : ('a, 'b) logger -> unit
Sourceval combine : ('a, 'b) logger list -> ('a, 'b) logger
Sourcemodule Test : sig ... end
OCaml

Innovation. Community. Security.