mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
896 stars 198 forks source link

Add unit test to cover error and some non-error cases of cbdc::raft::node #133

Closed ykaravas closed 2 years ago

ykaravas commented 2 years ago

This issue references a task in https://github.com/mit-dci/opencbdc-tx/issues/3, Test Coverage / Quality Umbrella; specifically, related to the fifth issue down the list which reads:

"Improve test for cbdc::raft::node to cover all error (and ideally non-error) cases"

The cbdc::raft::node does not cover error cases (and ideally some non-error cases)

To resolve this issue, a unit tests will be added to raft_test.cpp to cover error cases possible in cdbdc::raft::node as well as, possibly, some more non-error cases.