Function cuprate_p2p_core::client::mock_client

source ยท
pub fn mock_client<Z: NetworkZone, S>(
    info: PeerInformation<Z::Addr>,
    connection_guard: ConnectionGuard,
    request_handler: S,
) -> Client<Z>
Expand description

Creates a mock Client for testing purposes.

request_handler will be used to handle requests sent to the Client