Преглед изворни кода

Make extra_infos_server but not other simulation code available to tests

Vecna пре 10 месеци
родитељ
комит
606156c8b0
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      src/lib.rs

+ 6 - 1
src/lib.rs

@@ -20,13 +20,18 @@ pub mod negative_report;
 pub mod positive_report;
 pub mod request_handler;
 
-#[cfg(any(test, feature = "simulation"))]
+#[cfg(feature = "simulation")]
 pub mod simulation {
     pub mod extra_infos_server;
     pub mod state;
     pub mod user;
 }
 
+#[cfg(test)]
+pub mod simulation {
+    pub mod extra_infos_server;
+}
+
 use analysis::Analyzer;
 use extra_info::*;
 use negative_report::*;