pub fn mock_peers(&self) -> (Vec<LoadTrackedClient>, Vec<ClientTestHarness>) {
        let mut clients = Vec::with_capacity(self.peer_versions.len());
        let mut harnesses = Vec::with_capacity(self.peer_versions.len());

        for peer_version in &self.peer_versions {
            let (client, harness) = ClientTestHarness::build()
                .with_version(*peer_version)
                .finish();

            clients.push(client.into());
            harnesses.push(harness);
        }

        (clients, harnesses)
    }
/// Convert the arbitrary peer versions into mock peer services.
///
/// Each peer versions results in a mock peer service, which is returned as a tuple. The first
/// element is the [`LeadTrackedClient`], which is the actual service for the peer connection.
/// The second element is a [`ClientTestHarness`], which contains the open endpoints of the
/// mock channels used by the peer service.
///
/// The clients and the harnesses are collected into separate [`Vec`] lists and returned.
Convert the arbitrary peer versions into mock peer services.
Each peer versions results in a mock peer service, which is returned as a tuple. The first
element is the [`LeadTrackedClient`], which is the actual service for the peer connection.
The second element is a [`ClientTestHarness`], which contains the open endpoints of the
mock channels used by the peer service.

The clients and the harnesses are collected into separate [`Vec`] lists and returned.
Convert the arbitrary peer versions into mock peer services . Each peer versions results in a mock peer service which is returned as a tuple . The first element is the [ ` LeadTrackedClient ` ] which is the actual service for the peer connection . The second element is a [ ` ClientTestHarness ` ] which contains the open endpoints of the mock channels used by the peer service . The clients and the harnesses are collected into separate [ ` Vec ` ] lists and returned .
pub fn mock_peers(&self) -> (Vec<LoadTrackedClient>, Vec<ClientTestHarness>) {
        let mut clients = Vec::with_capacity(self.peer_versions.len());
        let mut harnesses = Vec::with_capacity(self.peer_versions.len());
        for peer_version in &self.peer_versions {
            let (client, harness) = ClientTestHarness::build()
                .with_version(*peer_version)
                .finish();
            clients.push(client.into());
            harnesses.push(harness);
        }
        (clients, harnesses)
    }
pub fn mock_peers ( & self ) -> ( Vec < LoadTrackedClient > , Vec < ClientTestHarness > ) { let mut clients = Vec :: with_capacity ( self . peer_versions . len ( ) ) ; let mut harnesses = Vec :: with_capacity ( self . peer_versions . len ( ) ) ; for peer_version in & self . peer_versions { let ( client , harness ) = ClientTestHarness :: build ( ) . with_version ( * peer_version ) . finish ( ) ; clients . push ( client . into ( ) ) ; harnesses . push ( harness ) ; } ( clients , harnesses ) }
Convert the arbitrary peer versions into mock peer services.
Convert the arbitrary peer versions into mock peer services .
&self