We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shared_helpers
1 parent fd50e10 commit 40c2ca9Copy full SHA for 40c2ca9
src/bootstrap/src/utils/shared_helpers.rs
@@ -6,6 +6,9 @@
6
7
#![allow(dead_code)]
8
9
+#[cfg(test)]
10
+mod tests;
11
+
12
use std::env;
13
use std::ffi::OsString;
14
use std::fs::OpenOptions;
src/bootstrap/src/utils/tests/shared_helpers_tests.rs renamed to src/bootstrap/src/utils/shared_helpers/tests.rs
@@ -1,10 +1,3 @@
1
-//! The `shared_helpers` module can't have its own tests submodule, because
2
-//! that would cause problems for the shim binaries that include it via
3
-//! `#[path]`, so instead those unit tests live here.
4
-//!
5
-//! To prevent tidy from complaining about this file not being named `tests.rs`,
-//! it lives inside a submodule directory named `tests`.
-
use crate::utils::shared_helpers::parse_value_from_args;
#[test]
src/bootstrap/src/utils/tests/mod.rs
@@ -1,2 +1 @@
pub mod git;
-mod shared_helpers_tests;
0 commit comments