rippled
Private Member Functions | List of all members
ripple::test::LedgerTrie_test Class Reference
Inheritance diagram for ripple::test::LedgerTrie_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::LedgerTrie_test:
Collaboration graph
[legend]

Private Member Functions

void testInsert ()
 
void testRemove ()
 
void testEmpty ()
 
void testSupport ()
 
void testGetPreferred ()
 
void testRootRelated ()
 
void testStress ()
 
void run () override
 

Detailed Description

Definition at line 28 of file LedgerTrie_test.cpp.

Member Function Documentation

◆ testInsert()

void ripple::test::LedgerTrie_test::testInsert ( )
private

Definition at line 31 of file LedgerTrie_test.cpp.

◆ testRemove()

void ripple::test::LedgerTrie_test::testRemove ( )
private

Definition at line 158 of file LedgerTrie_test.cpp.

◆ testEmpty()

void ripple::test::LedgerTrie_test::testEmpty ( )
private

Definition at line 290 of file LedgerTrie_test.cpp.

◆ testSupport()

void ripple::test::LedgerTrie_test::testSupport ( )
private

Definition at line 310 of file LedgerTrie_test.cpp.

◆ testGetPreferred()

void ripple::test::LedgerTrie_test::testGetPreferred ( )
private

Build the tree below with initial tip support annotated A / \ B(1) C(1) / | | H D F(1) | E(2) | G

One of E advancing to G doesn't change anything A / \ B(1) C(1) / | | H D F(1) | E(1) | G(1)

C advancing to H does advance the seq 3 preferred ledger A / \ B(1) C / | | H(1)D F(1) | E(1) | G(1)

F advancing to E also moves the preferred ledger forward A / \ B(1) C / | | H(1)D F | E(2) | G(1)

Definition at line 358 of file LedgerTrie_test.cpp.

◆ testRootRelated()

void ripple::test::LedgerTrie_test::testRootRelated ( )
private

Definition at line 593 of file LedgerTrie_test.cpp.

◆ testStress()

void ripple::test::LedgerTrie_test::testStress ( )
private

Definition at line 623 of file LedgerTrie_test.cpp.

◆ run()

void ripple::test::LedgerTrie_test::run ( )
overrideprivate

Definition at line 668 of file LedgerTrie_test.cpp.