Add unittests for ledger publisher and bug fixes (#860)

Fix #881
This commit is contained in:
cyan317
2023-10-03 13:47:49 +01:00
committed by GitHub
parent caaa01bf0f
commit e2cc56d25a
7 changed files with 280 additions and 15 deletions

View File

@@ -25,7 +25,15 @@
struct MockCache
{
MOCK_METHOD(void, update, (std::vector<data::LedgerObject> const& a, uint32_t b, bool c), ());
virtual ~MockCache() = default;
MOCK_METHOD(void, updateImp, (std::vector<data::LedgerObject> const& a, uint32_t b, bool c), ());
virtual void
update(std::vector<data::LedgerObject> const& a, uint32_t b, bool c = false)
{
updateImp(a, b, c);
}
MOCK_METHOD(std::optional<data::Blob>, get, (ripple::uint256 const& a, uint32_t b), (const));