Relax missing file error in fixture test generator
@@ -31,7 +31,6 @@ struct TestCase {
}
const EXPECTED_EXTENSION: &str = "expected";
-const TODO: &str = "TODO";
fn main() {
let opt = Options::from_args();
@@ -44,11 +43,7 @@ fn main() {
let mut test_cases: HashMap<String, TestCase> = HashMap::new();
for dir_entry in paths {
let path = dir_entry.unwrap().path();
- if path
- .extension()
- .unwrap_or_else(|| panic!("unexpected path {:?}", &path))
- == TODO
- {
+ if path.extension().is_none() {
continue;
}
let name = sanitize_identifier(path.file_stem().unwrap().to_str().unwrap());
