-
Notifications
You must be signed in to change notification settings - Fork 124
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
chore(lib/trie): lib/trie/recorder
sub-package
#2082
chore(lib/trie): lib/trie/recorder
sub-package
#2082
Conversation
Codecov Report
@@ Coverage Diff @@
## qdm12-trie-node-subpkg-base #2082 +/- ##
===============================================================
- Coverage 60.12% 60.09% -0.04%
===============================================================
Files 221 221
Lines 27284 27278 -6
===============================================================
- Hits 16405 16392 -13
- Misses 8989 9000 +11
+ Partials 1890 1886 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@EclesioMeloJunior careful when merging PRs even when approved, this was pointing to #2077 and I originally wanted to rebase it on development once the base branch #2077 would be merged, to limit deltas. |
@qdm12 sorry about that, I thought everything was fine, I will be careful next times! Thanks for warning! |
* `lib/trie/recorder` subpackage * return an error on a call to Next() with no node * remove recorder `IsEmpty` method * Recorder `GetNodes()`
* `lib/trie/recorder` subpackage * return an error on a call to Next() with no node * remove recorder `IsEmpty` method * Recorder `GetNodes()`
* `lib/trie/recorder` subpackage * return an error on a call to Next() with no node * remove recorder `IsEmpty` method * Recorder `GetNodes()`
* `lib/trie/recorder` subpackage * return an error on a call to Next() with no node * remove recorder `IsEmpty` method * Recorder `GetNodes()`
…age (#2077) * Chore(packages): move node interface, leaf & branch implementations, encoding and decoding functions in `internal/trie/node` * Chore(packages): create `internal/trie/recorder` subpackage (#2082) * Chore(packages): create `internal/trie/pools` subpackage * Chore(packages): create `internal/trie/codec` subpackage * Chore(tests): add tests with near full coverage * Chore(errors): improve error wrapping on trie node implementations and encoding/decoding * Optimization: use `sync.Pool` for header byte reading * Optimization: encode headers directly to buffer * Code addition: `GetValue() []byte` method for node interface * Code addition: `GetKey() []byte` method for node interface * Chore(comments): add and clarify existing comments * Chore(api): unexport node implementation fields: `Generation`, `Dirty`, `Encoding` and `Hash` * Minor change: trie `string()` method does not cache encoding in nodes. This is only used for debugging. Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
Changes
Tests
Issues
Primary Reviewer