mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 18:41:22 +00:00
Add unit tests for core::nodes::NodeStream (#535)
* Add unit tests for core::nodes::NodeStream * Move DummyMuxer to core/tests * Address grumbles * Impl Debug for SubstreamRef<P> * Add test for poll() * Don't need to open a substream * pretty printer test * More tests for NodeStream poll() * Remove contentious test of Debug
This commit is contained in:
@ -235,6 +235,11 @@ extern crate tokio_codec;
|
||||
extern crate tokio_current_thread;
|
||||
#[cfg(test)]
|
||||
extern crate tokio_timer;
|
||||
#[cfg(test)]
|
||||
#[macro_use]
|
||||
extern crate assert_matches;
|
||||
#[cfg(test)]
|
||||
extern crate tokio_mock_task;
|
||||
|
||||
/// Multi-address re-export.
|
||||
pub extern crate multiaddr;
|
||||
@ -245,6 +250,9 @@ mod peer_id;
|
||||
mod public_key;
|
||||
mod unique;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
pub mod either;
|
||||
pub mod muxing;
|
||||
pub mod nodes;
|
||||
|
Reference in New Issue
Block a user