gameServer2/src/protocol/parser.rs
changeset 13796 59ea2403f62d
parent 13795 e335daaa77a9
child 13798 4664da990556
--- a/gameServer2/src/protocol/parser.rs	Mon Aug 27 22:28:56 2018 +0300
+++ b/gameServer2/src/protocol/parser.rs	Tue Aug 28 17:19:25 2018 +0300
@@ -14,9 +14,10 @@
     ops::Range
 };
 use super::{
-    messages::{HWProtocolMessage, HWProtocolMessage::*},
-    test::gen_proto_msg
+    messages::{HWProtocolMessage, HWProtocolMessage::*}
 };
+#[cfg(test)]
+use super::test::gen_proto_msg;
 use crate::server::coretypes::{
     HedgehogInfo, TeamInfo, GameCfg, VoteType, MAX_HEDGEHOGS_PER_TEAM
 };
@@ -242,6 +243,7 @@
 
 named!(pub extract_messages<&[u8], Vec<HWProtocolMessage> >, many0!(complete!(message)));
 
+#[cfg(test)]
 proptest! {
     #[test]
     fn is_parser_composition_idempotent(ref msg in gen_proto_msg()) {