Skip to content

Commit fb4d8d8

Browse files
Explicitly mark test functions
1 parent 67b6ca0 commit fb4d8d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/oxide/tests/scanner.rs

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mod scanner {
1515
candidates: Vec<String>,
1616
}
1717

18+
#[cfg(test)]
1819
fn create_files_in(dir: &path::Path, paths: &[(&str, &str)]) {
1920
// Create the necessary files
2021
for (path, contents) in paths {
@@ -29,6 +30,7 @@ mod scanner {
2930
}
3031
}
3132

33+
#[cfg(test)]
3234
fn scan_with_globs(
3335
paths_with_content: &[(&str, &str)],
3436
source_directives: Vec<&str>,
@@ -106,6 +108,7 @@ mod scanner {
106108
}
107109
}
108110

111+
#[cfg(test)]
109112
fn scan(paths_with_content: &[(&str, &str)]) -> ScanResult {
110113
scan_with_globs(paths_with_content, vec!["@source '**/*'"])
111114
}

0 commit comments

Comments
 (0)