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" {< "5.0"}
15 "jbuilder" {>= "1.0+beta10"}
16]
17conflicts: [
18 "base-effects"
19]
20synopsis: "Configurable functions to test impure code"
21description: """
22This package provides "mocks", fake functions that can be configured to return
23values or raise exception. It is possible to inspect their arguments after their
24execution. The API is greatly inspired by [unittest.mock] in Python.
25
26There is no magic under the hood, it is "just" a reference to a function, but
27it makes it possible to have pleasant output like this in your tests:
28
29> expected f to be called once, but it was called 3 times
30
31A wrapper for `OUnit2` is available as `mock-ounit`.
32
33[unittest.mock]: https://docs.python.org/3/library/unittest.mock.html"""
34url {
35 src:
36 "https://github.com/cryptosense/ocaml-mock/releases/download/v0.1.0/mock-0.1.0.tbz"
37 checksum: [
38 "sha256=cbc52786edcaebce9f86a366b65bc0d6d646ec667e40837846de241ae44efb40"
39 "md5=f5a6529d2df5aa1789846c902028cd1c"
40 ]
41}