Expand description
§In-memory transport for tests
A fully synchronous in-process implementation of
crate::transport::transport::TransportFactory and
crate::transport::transport::TransportServer: every “server” registers itself in
a shared registry keyed by id, and every “client” request is just a channel send into
the matching server’s request queue.
This is what makes the integration-test harness fast and deterministic. A virtual
network of dozens of servers + clients runs inside a single test binary, with no
sockets, no TLS negotiation, no PoW relaxation fudge, and no flaky wall-clock
ordering. Swap MemTransportFactory for the HTTPS factory and the same protocol code
runs on the real network.
Structs§
- MemTransport
Factory - MemTransport
Server - An entirely in-process
TransportServerused by the integration test harness.