Skip to content
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: fix TestNamespacedMerkleTree_calculateAbsenceIndex_Panic #169

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Mar 30, 2023

Closes #158

@rootulp rootulp requested a review from staheri14 March 30, 2023 19:21
@rootulp rootulp self-assigned this Mar 30, 2023
@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #169 (927c7f3) into master (eb012d0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #169   +/-   ##
=======================================
  Coverage   96.20%   96.20%           
=======================================
  Files           6        6           
  Lines         527      527           
=======================================
  Hits          507      507           
  Misses         12       12           
  Partials        8        8           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, added a suggestion as well.

nmt_test.go Outdated
Comment on lines 600 to 601
{"((0,0) == nID < minNID == (0,1))", []byte{0, 0}, generateLeafData(nidLen, 1, 3, []byte{})},
{"((0,3) == nID > maxNID == (0,2))", []byte{0, 3}, generateLeafData(nidLen, 1, 3, []byte{})},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also modify the test names of these two to be consistent with the first one e.g., "non-empty tree with 3 leaves: ((0,0) == nID < minNID == (0,1))"

@rootulp rootulp merged commit a20a723 into celestiaorg:master Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestNamespacedMerkleTree_calculateAbsenceIndex_Panic isn’t complete
2 participants