pokt-network / smt

A Go library that implements a Sparse Merkle Trie for a key-value map.
https://pkg.go.dev/github.com/pokt-network/smt
Other
16 stars 4 forks source link

feat: unexport GetPathBit #26

Closed h5law closed 11 months ago

h5law commented 11 months ago

Summary generated by Reviewpad on 25 Sep 23 19:45 UTC

This pull request updates the code by unexporting the GetPathBit function. It modifies multiple files, including proofs.go, smt.go, and utils.go. The changes involve replacing all occurrences of GetPathBit with the newly named function getPathBit. Overall, the patch improves code readability and maintainability by limiting the visibility of GetPathBit.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c5998f1) 84.77% compared to head (9a79d43) 84.77%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #26 +/- ## ======================================= Coverage 84.77% 84.77% ======================================= Files 8 8 Lines 1241 1241 ======================================= Hits 1052 1052 Misses 138 138 Partials 51 51 ``` | [Files](https://app.codecov.io/gh/pokt-network/smt/pull/26?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pokt-network) | Coverage Δ | | |---|---|---| | [proofs.go](https://app.codecov.io/gh/pokt-network/smt/pull/26?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pokt-network#diff-cHJvb2ZzLmdv) | `88.46% <100.00%> (ø)` | | | [utils.go](https://app.codecov.io/gh/pokt-network/smt/pull/26?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pokt-network#diff-dXRpbHMuZ28=) | `94.28% <100.00%> (ø)` | | | [smt.go](https://app.codecov.io/gh/pokt-network/smt/pull/26?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pokt-network#diff-c210Lmdv) | `80.03% <90.90%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.