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.
#[cfg(test)]
tester
1 parent 5f56b09 commit 6dd4107Copy full SHA for 6dd4107
apps/oxlint/src/lib.rs
@@ -10,9 +10,11 @@ mod js_plugins;
10
mod lint;
11
mod output_formatter;
12
mod result;
13
-mod tester;
14
mod walk;
15
+#[cfg(test)]
16
+mod tester;
17
+
18
pub mod cli {
19
pub use crate::{command::*, lint::LintRunner, result::CliRunResult};
20
}
apps/oxlint/src/tester.rs
@@ -1,20 +1,14 @@
1
-#[cfg(test)]
2
use std::{env, path::PathBuf};
3
4
5
use cow_utils::CowUtils;
6
7
use lazy_regex::Regex;
8
9
use crate::cli::{LintRunner, lint_command};
pub struct Tester {
cwd: PathBuf,
impl Tester {
pub fn new() -> Self {
let cwd = env::current_dir().unwrap();
0 commit comments