-
Notifications
You must be signed in to change notification settings - Fork 252
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
refactor: remove count from spare share splitter #911
refactor: remove count from spare share splitter #911
Conversation
func TestMsgShareContainsInfoByte(t *testing.T) { | ||
sss := NewSparseShareSplitter() | ||
smallMsg := generateRandomMessage(appconsts.SparseShareContentSize / 2) | ||
sss.Write(smallMsg) | ||
|
||
shares := sss.Export() | ||
|
||
got := shares[0][appconsts.NamespaceSize : appconsts.NamespaceSize+appconsts.ShareInfoBytes][0] | ||
|
||
isSequenceStart := true | ||
want, err := NewInfoByte(appconsts.ShareVersion, isSequenceStart) |
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.
Apologies for including a refactor to the info byte tests while implementing TestSparseShareSplitterCount
. The refactor can be extracted to a separate PR if requested.
Codecov Report
@@ Coverage Diff @@
## main #911 +/- ##
=======================================
Coverage 26.09% 26.09%
=======================================
Files 77 77
Lines 9344 9341 -3
=======================================
Hits 2438 2438
+ Misses 6677 6674 -3
Partials 229 229
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
utACK
Closes #873
Closes informalsystems/audit-celestia#20