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


Public Member Functions | |
| TestFamily (beast::Journal j) | |
| node_store::Database & | db () override |
| node_store::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 29 of file TestFamily.h.
|
explicit |
Definition at line 40 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 58 of file TestFamily.h.
|
nodiscardoverridevirtual |
Implements xrpl::Family.
Definition at line 64 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 70 of file TestFamily.h.
|
overridevirtual |
Return a pointer to the Family Full Below Cache.
Implements xrpl::Family.
Definition at line 76 of file TestFamily.h.
|
overridevirtual |
Return a pointer to the Family Tree Node Cache.
Implements xrpl::Family.
Definition at line 82 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 88 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 95 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 101 of file TestFamily.h.
|
overridevirtual |
Implements xrpl::Family.
Definition at line 107 of file TestFamily.h.
| TestStopwatch & xrpl::test::TestFamily::clock | ( | ) |
Access the test clock for time manipulation in tests.
Definition at line 117 of file TestFamily.h.
|
private |
Definition at line 32 of file TestFamily.h.
|
private |
Definition at line 33 of file TestFamily.h.
|
private |
Definition at line 34 of file TestFamily.h.
|
private |
Definition at line 35 of file TestFamily.h.
|
private |
Definition at line 36 of file TestFamily.h.
|
private |
Definition at line 37 of file TestFamily.h.