Module test_transport

Module test_transport 

Source
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§

TestNetwork
A simulated network for testing custom transports.
TestTransport
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.