-
Notifications
You must be signed in to change notification settings - Fork 662
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: add helper function for verifier tests #12771
base: master
Are you sure you want to change the base?
Conversation
Add `verify_validate_and_charge_transaction` function for verifier tests which combines `validate_transaction` and `verify_and_charge_transaction` functions. This reduces complexity of current and future tests.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12771 +/- ##
==========================================
+ Coverage 70.51% 70.53% +0.01%
==========================================
Files 846 846
Lines 174633 174623 -10
Branches 174633 174623 -10
==========================================
+ Hits 123144 123163 +19
+ Misses 46261 46232 -29
Partials 5228 5228
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -796,6 +796,31 @@ mod tests { | |||
} | |||
} | |||
|
|||
pub fn verify_validate_and_charge_transaction( |
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.
pub fn verify_validate_and_charge_transaction( | |
pub fn validate_verify_and_charge_transaction( |
As the functions are correspondingly validate_transaction
and verify_and_charge_transaction
.
Add
verify_validate_and_charge_transaction
function for verifier tests which combinesvalidate_transaction
andverify_and_charge_transaction
functions. This reduces complexity of current and future tests.