Closed h5law closed 10 months ago
Attention: 15 lines
in your changes are missing coverage. Please review.
Comparison is base (
db06038
) 83.28% compared to head (fee3061
) 83.24%. Report is 1 commits behind head on main.:exclamation: Current head fee3061 differs from pull request most recent head a7c793c. Consider uploading reports for the commit a7c793c to get more accurate results
Files | Patch % | Lines |
---|---|---|
kvstore/badger/kvstore.go | 62.50% | 12 Missing and 3 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@muXxer Let me know if this is what you were looking for from your PR
@Olshansk what do you think of the new structure re: simplemap making it a submodule and separating the MapStore
interface from any implementations
@h5law Make sure to resolve conflicts with main and fix the indents.
Attention: 15 lines
in your changes are missing coverage. Please review.
Comparison is base (
883d100
) 83.28% compared to head (538dcb5
) 83.24%.
Files | Patch % | Lines |
---|---|---|
kvstore/badger/kvstore.go | 62.50% | 12 Missing and 3 partials :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
Human Summary
This PR reintroduces the
MapStore
interface andSimpleMap
implementation of a basic in-memory key-value store and makes the badgerBadgerStore
interface and tests a submodule, in the case where people do not want this dependency.It also updates the Makefile targets and workflows to account for this change in project structure.
AI Summary
Summary generated by Reviewpad on 03 Jan 24 22:49 UTC
This pull request includes several changes across multiple files:
Modifications to the
bulk_test.go
file:simplemap
.smn
andsmv
usingsimplemap.NewSimpleMap()
function instead ofNewKVStore
.bulkOperations
function.Addition of a new file
interfaces.go
in thekvstore
package:MapStore
interface for key-value store functionalities.Addition of a new test file
smt_example_test.go
demonstrating the usage of Sparse Merkle Trie (SMT).Changes to the
fuzz_test.go
file:github.com/pokt-network/smt/kvstore/simplemap
.smn.Stop()
statement.Modifications to the README.md file:
Changes to the
smt.md
file:Database
section.MapStore
andKVStore
interfaces.SimpleMap
andBadger
submodules.Example
section.Addition of the
mapstore.md
file:MapStore
interface and its implementations (SimpleMap
andBadgerV4
).Renaming and restructuring of packages and test names in various files.
Renaming and updating the
kvstore.md
file tobadger-store.md
.Changes to
smt_proofs_test.go
:kvstore
andsimplemap
packages.Changes to
proofs.go
:init()
function.SparseMerkleProof
struct.Addition of the
godoc.go
file to thekvstore
directory.Changes to the Makefile:
Addition of a new test case in the
smst_example_test.go
file demonstrating the usage of thesimplemap
package.Addition of a new file
simplemap.go
implementing thesimplemap
package.Changes to the
smst_utils_test.go
file:Changes to the
godoc.go
file in thesmt
package:Changes to the
smst_proofs_test.go
file:Changes to the
godoc.go
file:Modifications to the
godoc.go
file:Please review these changes in detail and provide any necessary feedback.
Issue
Fixes N/A
28 raised this as an issue
Type of change
Please mark the relevant option(s):
Testing
make test_all
make benchmark_{all | suite name}
Required Checklist
godoc
format comments see: tip.golang.org/doc/comment)If Applicable Checklist