From 8e551f5e32452f53709cc8491bc1ee7bd7bbd9b2 Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Sun, 25 Mar 2018 08:22:04 -0700 Subject: [PATCH] debug trait tests --- src/streamer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/streamer.rs b/src/streamer.rs index 5f877bd889..8d38e5f6f1 100644 --- a/src/streamer.rs +++ b/src/streamer.rs @@ -378,7 +378,8 @@ mod test { use std::sync::mpsc::channel; use std::io::Write; use std::io; - use streamer::{allocate, receiver, responder, Packet, Receiver, Response, PACKET_SIZE}; + use streamer::{allocate, receiver, responder, Packet, Packets, Receiver, Response, Responses, + PACKET_SIZE}; fn get_msgs(r: Receiver, num: &mut usize) { for _t in 0..5 { @@ -423,6 +424,9 @@ mod test { #[test] pub fn streamer_debug() { write!(io::sink(), "{:?}", Packet::default()).unwrap(); + write!(io::sink(), "{:?}", Packets::default()).unwrap(); + write!(io::sink(), "{:?}", Response::default()).unwrap(); + write!(io::sink(), "{:?}", Responses::default()).unwrap(); } #[test] pub fn streamer_send_test() {