-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: unit tests for cairo-vm-cli (#964)
This splits functionality into a `run` function that receives the iterator of arguments, and `main` that simply calls it with `std::env::args`. Then, adds several test cases with `rstest`. It checks all combinations of successful runs and a few of invalid arguments and missing files. This should make the codecov path pipeline happier :) NOTE: the dynamic layout is too slow, and it caused a panic (subsequently fixed) as well. It is commented out from the tests until optimized.
- Loading branch information
Showing
4 changed files
with
274 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters