Expand description
Native execution environment for testing Thruput contracts in-process.
The entry point is test_environment::TestEnvironment, an in-memory
Thruput instance against which tests run mocked transactions and
assert on their results.
Re-exports§
pub use host_fn_error::perform_mocked_syscall;pub use try_commit_result::TryCommitResult;
Modules§
- frame_
builder - Fluent builders for configuring and executing invocation frames.
- frame_
result - Per-frame results (status, buffers, trace, events) and their assertions.
- host_
fn_ error - The mocked syscall entrypoint bridging guest syscalls to the test FFI.
- invoke_
error - Panic payloads and the panic hook that classify frame unwinds.
- mock_
contract - Mock contracts: native closures registered as contract entrypoints.
- mock_
transaction_ handler - The mocked transaction handler and its invocation-frame state machine.
- network_
config - The chain’s execution parameters, and a builder for non-default ones.
- rv32_
stack_ usage - The rv32 stack-usage record the test FFI keeps per rv32 invocation. The rv32 guest stack-usage diagnostic the test FFI records per invocation.
- test_
environment - The in-process thruput test environment.
- test_
environment_ builder - Optional builder for a test environment with non-default settings.
- test_
helpers - Small conveniences for writing tests (deterministic named addresses).
- transact_
result - Whole-transaction results (root frame + commit outcome) and assertions.
- transaction_
builder - Builder for configuring a mocked transaction before executing it.
- transaction_
handler - Handler for executing full signed transactions against the environment.
- try_
commit_ result - Typed outcome of a two-phase transaction commit.