xrpl_stdlib_test_utils/lib.rs
1//! Test harness for XRPL WebAssembly smart contracts.
2//!
3//! `MockHostBindings` (re-exported via [`mock_common`]) is defined inline in
4//! `xrpl-common-stdlib` because `mockall::automock` generates it next to the `HostBindings`
5//! trait. This crate is the author-facing entry point on top of it: a plain re-export for the
6//! raw mock, plus domain-specific scenario builders (see [`mock_escrow`]) that translate
7//! escrow facts into mock expectations. Always a dev-dependency; never compiled to WASM — declare it
8//! under `[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]`, since `mockall` is not
9//! `no_std` and will not build for `wasm32v1-none`.
10
11pub mod mock_common;
12pub mod mock_escrow;
13
14pub use mock_common::*;
15pub use mock_escrow::*;