package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-libs.base-test-helpers/Tezos_base_test_helpers/Tztest/index.html

Module Tezos_base_test_helpers.TztestSource

tztest contains the definition of tztest: a wrapper for tests cases running in the error monad. It also adds helpers for working with the mock sink.

Transform a function running in the error monad into an Alcotest, taking care of failing the test if the function results is an error. Note that the given function must still take care of test assertions, e.g. by using Alcotest.check.

Sourceval tztest_qcheck : ?count:int -> name:string -> 'a QCheck.arbitrary -> ('a -> ('b, Tezos_base.TzPervasives.tztrace) result Lwt.t) -> unit Octez_alcotezt.Alcotest_lwt.test_case
Sourceval tztest_qcheck2 : ?print:'a QCheck2.Print.t -> ?count:int -> name:string -> 'a QCheck2.Gen.t -> ('a -> ('b, Tezos_base.TzPervasives.tztrace) result Lwt.t) -> unit Octez_alcotezt.Alcotest_lwt.test_case
Sourceval with_empty_mock_sink : (unit -> unit Lwt.t) -> unit Lwt.t

with_empty_mock_sink f executes f after activating or clearing a Mock_sink sink.

Sinks can only be registered and activated once, and not removed thereafter.

OCaml

Innovation. Community. Security.