Bläddra i källkod

Make extra_infos_server but not other simulation code available to tests

Vecna 4 veckor sedan
förälder
incheckning
606156c8b0
1 ändrade filer med 6 tillägg och 1 borttagningar
  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::*;