this repo has no description
1opam-version: "2.0"
2maintainer: "Etienne Millon <etienne@cryptosense.com>"
3authors: "Etienne Millon <etienne@cryptosense.com>"
4homepage: "https://github.com/cryptosense/ocaml-mock"
5bug-reports: "https://github.com/cryptosense/ocaml-mock/issues"
6license: "BSD-2-Clause"
7dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git"
8doc: "https://cryptosense.github.io/ocaml-mock/doc"
9build: [
10 [ "jbuilder" "subst" "-p" name ] {dev}
11 [ "jbuilder" "build" "-p" name "-j" jobs ]
12]
13depends: [
14 "ocaml"
15 "jbuilder" {>= "1.0+beta10"}
16 "mock"
17 "ounit"
18]
19synopsis: "Configurable functions to test impure code"
20description: """
21This package provides "mocks", fake functions that can be configured to return
22values or raise exception. It is possible to inspect their arguments after their
23execution. The API is greatly inspired by [unittest.mock] in Python.
24
25There is no magic under the hood, it is "just" a reference to a function, but
26it makes it possible to have pleasant output like this in your tests:
27
28> expected f to be called once, but it was called 3 times
29
30A wrapper for `OUnit2` is available as `mock-ounit`.
31
32[unittest.mock]: https://docs.python.org/3/library/unittest.mock.html"""
33url {
34 src:
35 "https://github.com/cryptosense/ocaml-mock/releases/download/v0.1.0/mock-0.1.0.tbz"
36 checksum: [
37 "sha256=cbc52786edcaebce9f86a366b65bc0d6d646ec667e40837846de241ae44efb40"
38 "md5=f5a6529d2df5aa1789846c902028cd1c"
39 ]
40}