Available on (crate features
test-utils) and crate feature unstable-custom-transports only.Expand description
In-memory test transport for testing.
This module provides TestNetwork and TestTransport for testing
using in-memory channels instead of real network transports.
Structs§
- Test
Network - A simulated network for testing custom transports.
- Test
Transport - A test transport for use with
TestNetwork.
Constants§
- TEST_
TRANSPORT_ ID - The transport ID used by
TestNetwork.
Functions§
- to_
custom_ addr - Converts an endpoint ID to a custom address for this test transport.