1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! 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.
/// Report a failure detected inside a `Drop` impl without risking a SIGABRT.
///
/// Panicking while the thread is *already* unwinding (e.g. a test assertion
/// just failed) aborts the whole process, replacing the original failure
/// message with an opaque SIGABRT. So when a panic is already in flight we log
/// to stderr instead; otherwise we panic normally, since a Drop-time invariant
/// violation with no prior panic is a real bug worth surfacing loudly.
pub
/// Fluent builders for configuring and executing invocation frames.
/// Per-frame results (status, buffers, trace, events) and their assertions.
/// The mocked syscall entrypoint bridging guest syscalls to the test FFI.
/// Panic payloads and the panic hook that classify frame unwinds.
pub use perform_mocked_syscall;
/// Mock contracts: native closures registered as contract entrypoints.
/// The mocked transaction handler and its invocation-frame state machine.
/// The chain's execution parameters, and a builder for non-default ones.
/// The rv32 stack-usage record the test FFI keeps per rv32 invocation.
/// The in-process thruput test environment.
/// Optional builder for a test environment with non-default settings.
/// Small conveniences for writing tests (deterministic named addresses).
/// Whole-transaction results (root frame + commit outcome) and assertions.
/// Builder for configuring a mocked transaction before executing it.
/// Handler for executing full signed transactions against the environment.
/// Typed outcome of a two-phase transaction commit.
pub use TryCommitResult;
compile_error!;