Re-exports§
pub use event_aggregator_utils::NodeLogInfo;pub use event_aggregator_utils::TestAggregatorBuilder;
Modules§
- event_
aggregator_ utils - Test utilities for event log aggregation.
Structs§
- Build
Tool Config - Builds and packages a contract or delegate.
- Node
Info - Information about a node in a test
- Task
- Data model representing a task for testing
- Test
Context - Test context providing access to nodes and event aggregation.
- Test
Logger - A configurable test logger that provides flexible logging for tests.
- Todo
List - Data model representing a todo list for testing
Enums§
- LogFormat
- Format for test logger output
- Todo
Operation - Operations that can be performed on tasks
Functions§
- allocate_
test_ node_ block - Allocate a block of unique global node indices for a test.
- compile_
delegate - create_
empty_ delta_ update - Creates an empty delta update for testing no-change scenarios
- create_
empty_ todo_ list - Creates an empty todo list for testing
- create_
large_ todo_ list - Creates a large todo list near the practical size limit (1MB) for testing
- create_
max_ tasks_ todo_ list - Creates a state with exactly the maximum allowed number of tasks
- create_
minimal_ state - Creates a minimal valid state for testing
- create_
oversized_ todo_ list - Creates an oversized todo list that exceeds practical limits for testing
- create_
todo_ list_ with_ item - Creates a todo list with a single task for testing
- ensure_
contract_ compiled - Pre-compile a test contract WASM binary without loading it.
Call this BEFORE any test timeout to ensure
cargo buildtime doesn’t count against the test’s deadline. Thread-safe and idempotent. - load_
contract - load_
delegate - make_
get - make_
get_ with_ blocking - make_
node_ diagnostics - Query node diagnostics including subscription tree information.
- make_
put - make_
put_ with_ blocking - make_
subscribe - make_
update - release_
local_ port - Release a previously reserved port so future tests may reuse it.
- reserve_
local_ port - Reserve a unique localhost TCP port for tests.
- reserve_
local_ port_ on_ ip - Reserve a unique TCP port for tests on a specific IP address.
- reset_
global_ node_ index - Reset the global node index counter to initial state for this thread. Thread-local, so safe for parallel test execution.
- set_
peer_ id - Set the peer identifier for the current thread’s tracing context.
- take_
reserved_ tcp_ listener - Take the reserved TCP listener for a port without dropping it.
- test_
ip_ for_ node - Generate a unique loopback IP address for test node at given index.
- verify_
contract_ exists
Type Aliases§
- Test
Result - Test result type for test functions