-
Notifications
You must be signed in to change notification settings - Fork 119
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
test: improve crosschain module coverage #1967
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1967 +/- ##
===========================================
+ Coverage 55.71% 58.46% +2.74%
===========================================
Files 242 234 -8
Lines 13554 13392 -162
===========================================
+ Hits 7551 7829 +278
+ Misses 5559 5159 -400
+ Partials 444 404 -40
|
Just wanted to ping: for the TSS vote message tests are implemented here: #1966 |
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
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.
Looks great overall.
Wondering if we can do move coverage here https://app.codecov.io/gh/zeta-chain/node/pull/1967/blob/x/crosschain/keeper/evm_deposit.go
- Adding some data in
ctx.TxBytes
to cover L29 - Covering ProcessLogs
Also for https://app.codecov.io/gh/zeta-chain/node/pull/1967/blob/x/crosschain/keeper/msg_server_migrate_tss_funds.go
Maybe we can add coverage for Bitcoin chain case? L157
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.
looks good, left some minor comments
Description
Bumps coverage to 88.68%.
some header and proofs tests are not added because of this issue Reenable missing AddTracker tests and mock header/proof functionality for AddTracker and AddBlockHeader #1875
events.go and migrator.go added to ignore in codecov
i didnt add tests for past migrations
didn't test tss vote message because it is moved in other PR
Closes: #1740 #1316
Type of change
Tests
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: