-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: do not warn on ignored denom #74
Conversation
WalkthroughThe recent changes improve the Changes
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #74 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 63 63
Lines 2585 2585
=========================================
Hits 2585 2585 ☔ 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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- pkg/config/denom_info.go (1 hunks)
- pkg/config/denom_info_test.go (3 hunks)
Additional context used
Learnings (1)
pkg/config/denom_info_test.go (1)
Learnt from: freak12techno PR: QuokkaStake/cosmos-validators-exporter#64 File: pkg/config/consumer_chain_test.go:63-63 Timestamp: 2024-06-25T21:31:42.607Z Learning: In `pkg/config/consumer_chain_test.go`, incomplete `DenomInfos` fields are intentionally set to trigger validation failures as part of testing error handling.
Additional comments not posted (3)
pkg/config/denom_info.go (1)
33-33
: LGTM! The additional condition is logical.The added check for
Ignore
being false ensures that warnings are only displayed whenIgnore
is false, which aligns with the intended behavior.pkg/config/denom_info_test.go (2)
29-35
: LGTM! The test correctly validates theIgnore
field behavior.The test function appropriately checks that no error is returned when
Ignore
is true andDisplayDenom
is empty.
53-59
: LGTM! The test correctly validates theIgnore
field behavior.The test function appropriately checks that no warnings are returned when
Ignore
is true andCoingeckoCurrency
is empty.
Summary by CodeRabbit
Bug Fixes
CoingeckoCurrency
is empty andIgnore
is false.Tests
DenomInfo
warnings and ignore conditions.