Skip to content

Commit 40c2ca9

Browse files
committed
Move shared_helpers test to a dedicated module
1 parent fd50e10 commit 40c2ca9

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/bootstrap/src/utils/shared_helpers.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
#![allow(dead_code)]
88

9+
#[cfg(test)]
10+
mod tests;
11+
912
use std::env;
1013
use std::ffi::OsString;
1114
use std::fs::OpenOptions;

src/bootstrap/src/utils/tests/shared_helpers_tests.rs renamed to src/bootstrap/src/utils/shared_helpers/tests.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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`,
6-
//! it lives inside a submodule directory named `tests`.
7-
81
use crate::utils::shared_helpers::parse_value_from_args;
92

103
#[test]

src/bootstrap/src/utils/tests/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
pub mod git;
2-
mod shared_helpers_tests;

0 commit comments

Comments
 (0)