Function valence::testing::create_mock_client
source ยท pub fn create_mock_client<N: Into<String>>(
name: N,
) -> (ClientBundle, MockClientHelper)
Expand description
Creates a mock client bundle that can be used for unit testing.
Returns the client, and a helper to inject packets as if the client sent them and receive packets as if the client received them.