Module tests

Source
Expand description

Tests for the Client part of peer connections, and some test utilities for mocking Client instances.

Structs§

ClientTestHarness
A harness with mocked channels for testing a Client instance.
ClientTestHarnessBuilder
A builder for a Client and ClientTestHarness instance.

Enums§

ReceiveRequestAttempt 🔒
The result of an attempt to receive a ClientRequest sent by the Client instance.

Constants§

MAX_PEER_CONNECTION_TIME 🔒
The maximum time a mocked peer connection should be alive during a test.