-
Notifications
You must be signed in to change notification settings - Fork 323
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: generateShares(2 * 2) #2853
Conversation
WalkthroughThe change is a simple refactor within a test file, where the number of shares generated by the Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- pkg/da/data_availability_header_test.go (1 hunks)
Additional comments: 1
pkg/da/data_availability_header_test.go (1)
- 44-47: The change from
generateShares(4)
togenerateShares(2 * 2)
is functionally equivalent but may improve readability by providing context for the number4
. If2 * 2
represents a square or a pair-wise generation of shares, this change makes the intention clearer. However, if there is no such context, this change might be unnecessary. It's important to ensure that this change is consistent with the project's coding standards and that the team agrees on using such expressions for clarity.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2853 +/- ##
=======================================
Coverage 19.16% 19.16%
=======================================
Files 142 142
Lines 17291 17291
=======================================
Hits 3313 3313
Misses 13676 13676
Partials 302 302 ☔ View full report in Codecov by Sentry. |
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2023 Celestia Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Overview
Closes #1788
This PR updates
generateShares
parameter with2 * 2
instead of4
. As pointed in #1788.Summary by CodeRabbit