package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.base-test-helpers/Tezos_base_test_helpers/Tztest/index.html
Module Tezos_base_test_helpers.Tztest
Source
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.
Source
val tztest :
string ->
Octez_alcotezt.Alcotest.speed_level ->
(unit -> (unit, Tezos_base.TzPervasives.tztrace) result Lwt.t) ->
unit Octez_alcotezt.Alcotest_lwt.test_case
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
.
Source
val 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
Source
val 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
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>