mockversion

Configurable functions to test impure code

This package provides "mocks", fake functions that can be configured to return values or raise exceptions. It is possible to inspect their arguments after their execution. The API is greatly inspired by unittest.mock in Python.

AuthorCryptosense <opensource@cryptosense.com>
LicenseBSD-2-Clause
Published
Homepagehttps://github.com/cryptosense/ocaml-mock
Issue Trackerhttps://github.com/cryptosense/ocaml-mock/issues
MaintainerCryptosense <opensource@cryptosense.com>
Dependencies
Source [http] https://github.com/cryptosense/ocaml-mock/archive/refs/tags/1.0.0.tar.gz
md5=67deb0f8161f966bef6a422349dd88ad
sha512=3cad4d869563f4f187cc388170186825e0259a3f0a2d0c956ba47cb1f22ce08860677d80c04451d0b448745d76fef7f1c87e11ac1130548cb8506d5bc5715cd8
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/mock/mock.1.0.0/opam
Required by