test(precompiles): add missing test in staking#3017
Conversation
📝 WalkthroughWalkthroughThe changes in this pull request enhance the test suite for the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 6
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- precompiles/staking/staking_test.go (4 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
precompiles/staking/staking_test.go (1)
Pattern
**/*.go: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
🔇 Additional comments (1)
precompiles/staking/staking_test.go (1)
26-26: Import statement added appropriatelyThe import of
ptypesis correctly added to handle error types related to precompile methods.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3017 +/- ##
===========================================
+ Coverage 66.25% 66.29% +0.03%
===========================================
Files 406 406
Lines 22772 22772
===========================================
+ Hits 15088 15097 +9
+ Misses 6907 6901 -6
+ Partials 777 774 -3 |
Description
Add missings tests for
stake,unstakeandmoveStake. All these functions should fail if called throughstaticcall(readOnly = true).This PR has to be merged before #3010
How Has This Been Tested?
Summary by CodeRabbit