Skip to main content

Module mock_transaction_handler

Module mock_transaction_handler 

Source
Expand description

The mocked transaction handler and its invocation-frame state machine.

Structs§

MockInvocationFrame
One open invocation frame in a mocked transaction. Drive it with execute, then read the outcome with result. Prefer the fluent crate::frame_builder::FrameBuilder API unless a test needs this level of control.
MockInvocationFrameConfig
Builder for one invocation frame’s configuration, opened with build.
MockTransactionConfig
Configuration for a mocked transaction, applied when the handler is created. Build one with TestEnvironment::transaction, or use MockTransactionConfig::default for the standard setup.
MockTransactionHandler
A mocked transaction context: runs one, and only one, transaction, with exactly one root frame (call / open_root_frame panic on a second invocation). Nest further calls as child frames, or use a second transaction.