package pplumbing

  1. Overview
  2. Docs
Utility libraries to use with [pp]

Install

Dune Dependency

Authors

Maintainers

Sources

pplumbing-0.0.14.tbz
sha256=ed7eaba180378a59719e9af63ccdc89dde8e0a20f2cba420abb0080b0bc4a868
sha512=f168c37c1acd38c92e5b6d59321da4021195b6ddc49dde82de70e9282b55042621bea1b84a677d57f83604c06d6ee9c790b683fd589cd2097ab8f00c293f56af

doc/pplumbing.err/Err/For_test/index.html

Module Err.For_testSource

Sourceval protect : ?exn_handler:(exn -> t option) -> (unit -> unit) -> unit

Same as protect, but won't return the exit code, rather print the code at the end in case of a non zero code, like in cram tests.

Sourceval wrap : (unit -> 'a) -> 'a

Wrap the execution of a function under an environment proper for test execution. For example, it will turn down the colors in user messages. For_test.protect already does a wrap - this is exposed if you'd like to run some test outside of a protect handler.

OCaml

Innovation. Community. Security.