-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat: add read and verify utility method #324
Conversation
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #324 +/- ##
==========================================
+ Coverage 71.79% 72.42% +0.62%
==========================================
Files 38 38
Lines 3584 3615 +31
==========================================
+ Hits 2573 2618 +45
+ Misses 754 738 -16
- Partials 257 259 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Should I add unit tests to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need more test cases for edge cases
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Added some unit tests to |
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added VerifyReader struct that performs verification against the digest and size when reading content. Changed
CopyBuffer
to useVerifyReader
.resolves #306
Signed-off-by: wangxiaoxuan273 wangxiaoxuan119@gmail.com