rust-libp2p icon indicating copy to clipboard operation
rust-libp2p copied to clipboard

Introduce `libp2p-swarm-test` crate

Open thomaseizinger opened this issue 3 years ago • 0 comments

Description

Introduce a crate that contains reusable bits that make it easy to correctly test NetworkBehaviour implemenations. In particular, the crate should support the setting up and connecting a number of swarms, driving them correctly and asserting the emitted events.

Motivation

For code to be high quality it should be tested. If testing is easier, users are more likely to do it, thus yielding higher quality code.

Current Implementation

Are you planning to do it yourself in a pull request?

Yes.

thomaseizinger avatar Sep 12 '22 03:09 thomaseizinger