package octez-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.