Skip to main content

Crate xrpl_stdlib_test_utils

Crate xrpl_stdlib_test_utils 

Source
Expand description

Test harness for XRPL WebAssembly smart contracts.

MockHostBindings (re-exported via mock_common) is defined inline in xrpl-wasm-stdlib because mockall::automock generates it next to the HostBindings trait. This crate is the author-facing entry point on top of it: a plain re-export for the raw mock, plus domain-specific scenario builders (see mock_escrow) that translate escrow facts into mock expectations. Always a dev-dependency; never compiled to WASM.

Re-exports§

pub use mock_common::*;
pub use mock_escrow::*;

Modules§

mock_common
Re-exports of the mock host-bindings machinery that lives inline in xrpl-wasm-stdlib.
mock_escrow
Escrow-specific scenario builder on top of crate::mock_common.