-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(blockifier): split pre validate test by charge fee #994
refactor(blockifier): split pre validate test by charge fee #994
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #994 +/- ##
==========================================
- Coverage 74.18% 70.05% -4.13%
==========================================
Files 359 87 -272
Lines 36240 11219 -25021
Branches 36240 11219 -25021
==========================================
- Hits 26886 7860 -19026
+ Misses 7220 2971 -4249
+ Partials 2134 388 -1746
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @yoavGrs)
a discussion (no related file):
why split? lots of code duplication now, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
a discussion (no related file):
Previously, dorimedini-starkware wrote…
why split? lots of code duplication now, no?
In the last PR, there is some code duplication in the second scenario. I can move this duplication to a shared source, but it's not too bad IMO to leave it like that.
I don't like long tests, in which the state at the beginning is not necessary for the validations at the end.
It's also possible to split it another way (test for each case?).
dad0891
to
7531510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs)
crates/blockifier/src/transaction/execution_flavors_test.rs
line 385 at r1 (raw file):
// Second scenario: resource bounds greater than balance. // TODO(Ori, 1/2/2024): Write an indicative expect message explaining why the conversion works.
you can delete this
Code quote:
// TODO(Ori, 1/2/2024): Write an indicative expect message explaining why the conversion works.
7531510
to
8cb19f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs)
This change is