Skip to content

Commit

Permalink
migrate scanner tests to parser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Aug 24, 2023
1 parent a05d17a commit 711dfdb
Show file tree
Hide file tree
Showing 289 changed files with 2,518 additions and 754 deletions.
7 changes: 6 additions & 1 deletion crates/codegen/testing/src/cst_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ fn collect_parser_tests(data_dir: &Path) -> Result<BTreeMap<String, BTreeSet<Str
let mut parser_tests = BTreeMap::<String, BTreeSet<String>>::new();

for file in FileWalker::from_directory(data_dir).find_all()? {
if file.generated_dir().is_ok() {
if let Ok(generated_dir) = file.generated_dir() {
assert!(
generated_dir.unwrap_parent().join("input.sol").exists(),
"Each snapshot should have a matching input.sol test file: {file:?}",
);

// skip generated files
continue;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 711dfdb

Please sign in to comment.