xrpl_stdlib_test_utils/mock_common.rs
1//! Re-exports of the mock host-bindings machinery that lives inline in `xrpl-wasm-stdlib`.
2//!
3//! `mockall::automock` generates `MockHostBindings` right next to the `HostBindings` trait
4//! definition, so the type itself can't live in this crate. What lives here instead is the
5//! author-facing entry point: import from `xrpl_stdlib_test_utils` instead of reaching into
6//! `xrpl_wasm_stdlib::host::*` directly.
7
8pub use xrpl_wasm_stdlib::host::host_bindings_trait::{HostBindings, MockHostBindings};
9pub use xrpl_wasm_stdlib::host::{
10 MockGuard, apply_default_expectations, create_default_mock, setup_mock,
11};