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-wasm-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.
8
9pub mod mock_common;
10pub mod mock_escrow;
11
12pub use mock_common::*;
13pub use mock_escrow::*;