expect_json/expect_core/
mod.rs

1//!
2//! This module contains everything for implementing your own expectations.
3//!
4//! Implementing your own expectation involves working with three main types:
5//!
6//!  - The [`ExpectOp`] trait which implements the checks.
7//!  - The [`expect_op`] macro which wires up internals to make expectations work.
8//!  - A [`Context`] type for holding internal data (for managing things like paths of the checks).
9//!
10//! See the [`ExpectOp`] trait for an example on implementing an expectation.
11//!
12
13mod context;
14pub use self::context::*;
15
16mod expect_magic_id;
17pub(crate) use self::expect_magic_id::*;
18
19mod expect_op;
20pub use self::expect_op::*;
21
22mod expect_op_error;
23pub use self::expect_op_error::*;
24
25pub use ::expect_json_macros::*;