bootstrap: update test modules
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
76689539ee
commit
d6a974d096
src/bootstrap/src
core
utils
@ -14,7 +14,6 @@ use std::str::FromStr;
|
||||
use std::{fmt, fs, io};
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/setup.rs"]
|
||||
mod tests;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||
|
@ -32,7 +32,6 @@ use clap::ValueEnum;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../tests/builder.rs"]
|
||||
mod tests;
|
||||
|
||||
pub struct Builder<'a> {
|
||||
|
@ -3,10 +3,6 @@
|
||||
//! This module implements parsing `config.toml` configuration files to tweak
|
||||
//! how the build runs.
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/config.rs"]
|
||||
mod tests;
|
||||
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::cmp;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
@ -1203,7 +1199,7 @@ impl Config {
|
||||
Self::parse_inner(args, get_toml)
|
||||
}
|
||||
|
||||
fn parse_inner(args: &[String], get_toml: impl Fn(&Path) -> TomlConfig) -> Config {
|
||||
pub(crate) fn parse_inner(args: &[String], get_toml: impl Fn(&Path) -> TomlConfig) -> Config {
|
||||
let mut flags = Flags::parse(&args);
|
||||
let mut config = Config::default_opts();
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
pub(crate) mod config;
|
||||
pub(crate) mod flags;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
pub use config::*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{Config, Flags};
|
||||
use super::{flags::Flags, Config};
|
||||
use crate::core::config::{LldMode, TomlConfig};
|
||||
|
||||
use clap::CommandFactory;
|
@ -3,7 +3,6 @@
|
||||
//! the bootstrap.
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../tests/change_tracker.rs"]
|
||||
mod tests;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -21,7 +21,6 @@ use crate::LldMode;
|
||||
pub use crate::utils::dylib::{dylib_path, dylib_path_var};
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../tests/helpers.rs"]
|
||||
mod tests;
|
||||
|
||||
/// A helper macro to `unwrap` a result except also print out details like:
|
||||
|
Loading…
x
Reference in New Issue
Block a user