|
xrpld
|
Test implementation of Family for unit tests. More...
#include <TestFamily.h>


Public Member Functions | |
| TestFamily (beast::Journal j) | |
| NodeStore::Database & | db () override |
| NodeStore::Database const & | db () const override |
| beast::Journal const & | journal () override |
| std::shared_ptr< FullBelowCache > | getFullBelowCache () override |
| Return a pointer to the Family Full Below Cache. | |
| std::shared_ptr< TreeNodeCache > | getTreeNodeCache () override |
| Return a pointer to the Family Tree Node Cache. | |
| void | sweep () override |
| void | missingNodeAcquireBySeq (std::uint32_t refNum, uint256 const &nodeHash) override |
| Acquire ledger that has a missing node by ledger sequence. | |
| void | missingNodeAcquireByHash (uint256 const &refHash, std::uint32_t refNum) override |
| Acquire ledger that has a missing node by ledger hash. | |
| void | reset () override |
| TestStopwatch & | clock () |
| Access the test clock for time manipulation in tests. | |
Test implementation of Family for unit tests.
Uses an in-memory NodeStore database and simple caches. The missingNode methods throw since tests shouldn't encounter missing nodes.
Definition at line 19 of file TestFamily.h.
|
explicit |
Definition at line 30 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 48 of file TestFamily.h.
|
nodiscardoverridevirtual |
Implements xrpl::Family.
Definition at line 54 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 60 of file TestFamily.h.
|
overridevirtual |
Return a pointer to the Family Full Below Cache.
Implements xrpl::Family.
Definition at line 66 of file TestFamily.h.
|
overridevirtual |
Return a pointer to the Family Tree Node Cache.
Implements xrpl::Family.
Definition at line 72 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 78 of file TestFamily.h.
|
overridevirtual |
Acquire ledger that has a missing node by ledger sequence.
| refNum | Sequence of ledger to acquire. |
| nodeHash | Hash of missing node to report in throw. |
Implements xrpl::Family.
Definition at line 85 of file TestFamily.h.
|
overridevirtual |
Acquire ledger that has a missing node by ledger hash.
| refHash | Hash of ledger to acquire. |
| refNum | Ledger sequence with missing node. |
Implements xrpl::Family.
Definition at line 91 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 97 of file TestFamily.h.
| TestStopwatch & xrpl::test::TestFamily::clock | ( | ) |
Access the test clock for time manipulation in tests.
Definition at line 105 of file TestFamily.h.
|
private |
Definition at line 22 of file TestFamily.h.
|
private |
Definition at line 23 of file TestFamily.h.
|
private |
Definition at line 24 of file TestFamily.h.
|
private |
Definition at line 25 of file TestFamily.h.
|
private |
Definition at line 26 of file TestFamily.h.
|
private |
Definition at line 27 of file TestFamily.h.