Expand description
The mocked transaction handler and its invocation-frame state machine.
Structs§
- Mock
Invocation Frame - One open invocation frame in a mocked transaction. Drive it with
execute, then read the outcome withresult. Prefer the fluentcrate::frame_builder::FrameBuilderAPI unless a test needs this level of control. - Mock
Invocation Frame Config - Builder for one invocation frame’s configuration, opened with
build. - Mock
Transaction Config - Configuration for a mocked transaction, applied when the handler is
created. Build one with
TestEnvironment::transaction, or useMockTransactionConfig::defaultfor the standard setup. - Mock
Transaction Handler - A mocked transaction context: runs one, and only one, transaction, with
exactly one root frame (
call/open_root_framepanic on a second invocation). Nest further calls as child frames, or use a second transaction.