-
Notifications
You must be signed in to change notification settings - Fork 161
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: increase x/oracle unit test coverage #782
Conversation
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.
🚀
}{ | ||
{ | ||
val: []byte("addr________________"), | ||
expectedKey: []byte{0x4, 0x14, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f}, |
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.
Could add a comment as to the origin of these bytes - that would also clarify what the meaning would be if the test ever failed.
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.
For example:
// keyPrefixAggregateExchangeRatePrevote | lengthPrefixed(addr)
Changelog entry pls! Don't be like me |
Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #782 +/- ##
==========================================
- Coverage 48.03% 47.87% -0.16%
==========================================
Files 64 64
Lines 9329 9426 +97
==========================================
+ Hits 4481 4513 +32
- Misses 4581 4646 +65
Partials 267 267
|
* chore: increasce test coverage * rename variables Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> * moved test vars and const to test_utils * add comments to keys * fix string unit test * add changelog Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> (cherry picked from commit 2343d70)
* chore: increasce test coverage * rename variables Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> * moved test vars and const to test_utils * add comments to keys * fix string unit test * add changelog Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> (cherry picked from commit 2343d70) Co-authored-by: Rafael Tenfen <rafaeltenfen.rt@gmail.com>
Description
x/oracle/types/denom.go
andx/oracle/types/keys.go
helps: #661
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change