Skip to main content

Module mock_common

Module mock_common 

Source
Expand description

Re-exports of the mock host-bindings machinery that lives inline in xrpl-wasm-stdlib.

mockall::automock generates MockHostBindings right next to the HostBindings trait definition, so the type itself can’t live in this crate. What lives here instead is the author-facing entry point: import from xrpl_stdlib_test_utils instead of reaching into xrpl_wasm_stdlib::host::* directly.

Structs§

MockGuard
MockHostBindings
Trait defining all host functions available to WASM smart contracts.

Traits§

HostBindings
Trait defining all host functions available to WASM smart contracts.

Functions§

apply_default_expectations
Applies the same default .returning(...) wiring as create_default_mock onto an existing mock instead of constructing a new one.
create_default_mock
setup_mock