-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Migration package tests #8524
Migration package tests #8524
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.
One canonical way to verify that you properly copied the object would be to retrieve its root. So you could just verify that the root is the same for both methods.
|
||
// HydrateV1SignedBeaconBlock hydrates a signed beacon block with correct field length sizes | ||
// to comply with fssz marshalling and unmarshalling rules. | ||
func HydrateV1SignedBeaconBlock(b *v1.SignedBeaconBlock) *v1.SignedBeaconBlock { |
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.
Test for this? : )
TestHydrateSignedBeaconBlock_NoError
for reference
Codecov Report
@@ Coverage Diff @@
## develop #8524 +/- ##
==========================================
Coverage ? 58.16%
==========================================
Files ? 460
Lines ? 33044
Branches ? 0
==========================================
Hits ? 19219
Misses ? 10905
Partials ? 2920 |
What type of PR is this?
Testing
What does this PR do? Why is it needed?
The
migration
package, used for mapping between new and old proto objects, did not contain any tests. The PR addresses this repugnant state of affairs.Which issues(s) does this PR fix?
N/A
Other notes for review
N/A