diff --git a/src/file_handler.rs b/src/file_handler.rs index 61b04f7..763df0b 100644 --- a/src/file_handler.rs +++ b/src/file_handler.rs @@ -25,7 +25,7 @@ pub fn string_exists_in_multiline_text(term: &str, content: &str) -> bool { } #[cfg(test)] -mod file_handler_tests { +mod tests { use super::*; #[test] diff --git a/src/project/mod.rs b/src/project/mod.rs index 4ab9c17..ede8cb3 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -96,7 +96,7 @@ fn should_scan_file(file_path: &str) -> bool { } #[cfg(test)] -mod projects_tests { +mod tests { use super::{should_scan_file, node_js::NodeProject, rust::RustProject}; #[test] diff --git a/src/project/node_js.rs b/src/project/node_js.rs index 20eac72..a1ed313 100644 --- a/src/project/node_js.rs +++ b/src/project/node_js.rs @@ -66,7 +66,7 @@ fn get_deps_names(parsed_file: NodePackagesHandler) -> Vec { } #[cfg(test)] -mod project_node_tests { +mod tests { use std::collections::HashMap; use super::*; diff --git a/src/project/rust.rs b/src/project/rust.rs index 291fa8c..5305932 100644 --- a/src/project/rust.rs +++ b/src/project/rust.rs @@ -49,7 +49,7 @@ fn get_deps_names(parsed_file: RustPackagesHandler) -> Vec { } #[cfg(test)] -mod project_rust_tests { +mod tests { use super::*; #[test]