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

Change Push signature and simplify PrefixedData #27

Merged
merged 3 commits into from
Mar 22, 2021
Merged

Conversation

liamsi
Copy link
Member

@liamsi liamsi commented Mar 19, 2021

Updates the Push method to take in the pair (nid, data) as one argument.

closes: #26

@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #27 (1feed0c) into master (e0a317a) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
- Coverage   94.82%   94.70%   -0.13%     
==========================================
  Files           7        7              
  Lines         309      302       -7     
==========================================
- Hits          293      286       -7     
  Misses         11       11              
  Partials        5        5              
Impacted Files Coverage Δ
namespace/data.go 100.00% <ø> (ø)
nmt.go 92.95% <100.00%> (ø)
namespace/digest.go 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0a317a...1feed0c. Read the comment docs.

fuzz_test.go Outdated
err := tree.Push(d[:size], d[size:])
err := tree.Push(d[:size])
Copy link
Member

Choose a reason for hiding this comment

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

does this test only need namespaces now?

Copy link
Member Author

@liamsi liamsi Mar 22, 2021

Choose a reason for hiding this comment

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

Nope, good catch! Fixed in 1feed0c

Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

nice, api is slick! 👍 LGTM

@liamsi liamsi merged commit 14db874 into master Mar 22, 2021
@liamsi liamsi deleted the ismail/refactor_push branch March 22, 2021 15:39
liamsi added a commit that referenced this pull request Mar 22, 2021
liamsi added a commit that referenced this pull request Mar 23, 2021
liamsi added a commit that referenced this pull request Mar 25, 2021
Fix minor refactoring glitch introduced with #27
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.

reconsider Push to take in the pair (nid, data) as one argument instead
2 participants