You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This patch-set introduces `libp2p-swarm-test`. It provides utilities for quick and safe bootstrapping of tests for `NetworkBehaviour`s. The main design features are:
- Everything has timeouts
- APIs don't get in your way
- Minimal boilerplate
Closes#2884.
Pull-Request: #2888.
umgefahren
pushed a commit
to umgefahren/rust-libp2p
that referenced
this issue
Mar 8, 2024
This patch-set introduces `libp2p-swarm-test`. It provides utilities for quick and safe bootstrapping of tests for `NetworkBehaviour`s. The main design features are:
- Everything has timeouts
- APIs don't get in your way
- Minimal boilerplate
Closeslibp2p#2884.
Pull-Request: libp2p#2888.
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.
The text was updated successfully, but these errors were encountered: