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

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-libs.event-logging-test-helpers/Tezos_event_logging_test_helpers/Mock_sink/Pattern/index.html

Module Mock_sink.PatternSource

Describes an event pattern to search for in the sink.

Sourcetype t = {
  1. level : Tezos_event_logging.Internal_event.level option;
  2. section : Tezos_event_logging.Internal_event.Section.t option option;
  3. name : string;
}

An event pattern to search the sink for. Checks for the event's name, and optionally also for level and section. Passing None as each of these fields results in that field not being checked.

Sourceval match_event : t -> event -> bool

Returns true if event matches the pattern; false otherwise.

Sourceval assert_event : t -> event -> unit

An Alcotest assertion that event matches the pattern.

OCaml

Innovation. Community. Security.