Expand description
The in-process thruput test environment.
Structs§
- Test
Environment - An in-process Thruput instance for testing contracts natively.
Constants§
- TEST_
NETWORK_ NAME - Name of the network that
TestEnvironments run on.
Functions§
- mock_
genesis_ root_ contract - The genesis root installed by the default constructors: a mock contract
whose id sits at the top of the range, away from the low ids tests
typically register. The test environment executes contract bodies
natively through the mock trampoline, so the genesis root’s code never
runs — only its deployment exists. Use
TestEnvironment::with_genesis_root_contractto install a different contract (e.g. a real rv32 artifact). - test_
network_ hash - The
NetworkHashthatTestEnvironments are created with:sha256(TEST_NETWORK_NAME).
Type Aliases§
- Test
Environment Handle - Shared handle to a
TestEnvironment; returned by its constructors.