1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
pub mod tcp; extern crate rustc_serialize; #[cfg(test)] mod test { use tcp; use std::collections::HashMap; #[test] fn tcp_write() { let mut object = HashMap::new(); object.insert("key", "value"); let fluentd = tcp::Fluentd { address: "0.0.0.0:24224", tag: "foo", }; let _ = fluentd.write(&object); } }