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

Add unit test to cover non-error cases of cbdc::nuraft_serializer::read() #117

Closed
Tracked by #3
ykaravas opened this issue Jun 2, 2022 · 0 comments · Fixed by #118
Closed
Tracked by #3

Add unit test to cover non-error cases of cbdc::nuraft_serializer::read() #117

ykaravas opened this issue Jun 2, 2022 · 0 comments · Fixed by #118

Comments

@ykaravas
Copy link

ykaravas commented Jun 2, 2022

This issue references a task in #3, Test Coverage / Quality Umbrella.

The cbdc::nuraft_serializer::read() does not cover non-error cases

To resolve this issue, a unit test was added to raft_test.cpp called test_raft_serializer_read which makes sure the test hash which is read from the cbdc::nuraft_serializer is in fact correct. It also moves cursor, reads and makes sure the data is once again what it should be relative to test_hash.

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 a pull request may close this issue.

1 participant