Skip to main content

Module tests

Module tests 

Source
Expand description

Shared test-helper factory (fixtures + in-memory transports).

Exported from the library — not gated behind #[cfg(test)] — so both in-module unit tests and the out-of-crate integration / e2e suites can build fixtures from one place (the house convention; DESIGN.md §22). Prefer the in-memory tokio::io::duplex transport here over real sockets wherever a test doesn’t specifically exercise the network.

Key / signing fixtures arrive with the identity work in M1; today this seeds the transport and path fixtures the later suites build on.

Constants§

DUPLEX_BUF
Buffer size for the in-memory duplex transport (64 KiB each direction).

Functions§

duplex
A connected in-memory duplex stream pair, standing in for a socket in tests.
sample_session_path
A representative fully-qualified session path fixture (aaron/workstation/razel).