Module expect_core

Module expect_core 

Source
Expand description

This module contains everything for implementing your own expectations.

Implementing your own expectation involves working with three main types:

  • The ExpectOp trait which implements the checks.
  • The expect_op macro which wires up internals to make expectations work.
  • A Context type for holding internal data (for managing things like paths of the checks).

See the ExpectOp trait for an example on implementing an expectation.

Structs§

Context

Enums§

ExpectOpError

Traits§

ExpectOp
The trait that represents an expectation. It needs to be used in conjunction with the super::expect_op macro.

Type Aliases§

ExpectOpResult

Attribute Macros§

expect_op