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:
David
2018-10-05 11:55:32 +02:00
committed by Pierre Krieger
parent c032afbde5
commit d81f4e264f
6 changed files with 363 additions and 0 deletions

View File

@ -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;