rippled
Public Member Functions | List of all members
ripple::test::LedgerReplayer_test Struct Reference

Test cases: LedgerReplayer_test: – process TMProofPathRequest and TMProofPathResponse – process TMReplayDeltaRequest and TMReplayDeltaResponse – update and merge LedgerReplayTask::TaskParameter – process [ledger_replay] section in config – peer handshake – replay a range of ledgers that the local node already has – replay a range of ledgers and fallback to InboundLedgers because peers do not support ProtocolFeature::LedgerReplay – replay a range of ledgers and the network drops or repeats messages – call stop() and the tasks and subtasks are removed – process a bad skip list – process a bad ledger delta – replay ledger ranges with different overlaps. More...

Inheritance diagram for ripple::test::LedgerReplayer_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::LedgerReplayer_test:
Collaboration graph
[legend]

Public Member Functions

void testProofPath ()
 
void testReplayDelta ()
 
void testTaskParameter ()
 
void testConfig ()
 
void testHandshake ()
 
void testAllLocal (int totalReplay)
 
void testAllInboundLedgers (int totalReplay)
 
void testPeerSetBehavior (PeerSetBehavior peerSetBehavior, int totalReplay=4)
 
void testStop ()
 
void testSkipListBadReply ()
 
void testLedgerDeltaBadReply ()
 
void testLedgerReplayOverlap ()
 
void run () override
 

Detailed Description

Test cases: LedgerReplayer_test: – process TMProofPathRequest and TMProofPathResponse – process TMReplayDeltaRequest and TMReplayDeltaResponse – update and merge LedgerReplayTask::TaskParameter – process [ledger_replay] section in config – peer handshake – replay a range of ledgers that the local node already has – replay a range of ledgers and fallback to InboundLedgers because peers do not support ProtocolFeature::LedgerReplay – replay a range of ledgers and the network drops or repeats messages – call stop() and the tasks and subtasks are removed – process a bad skip list – process a bad ledger delta – replay ledger ranges with different overlaps.

LedgerReplayerTimeout_test: – timeouts of SkipListAcquire – timeouts of LedgerDeltaAcquire

LedgerReplayerLong_test: (MANUAL) – call replayer.replay() 4 times to replay 1000 ledgers

Definition at line 882 of file LedgerReplay_test.cpp.

Member Function Documentation

◆ testProofPath()

void ripple::test::LedgerReplayer_test::testProofPath ( )

Definition at line 885 of file LedgerReplay_test.cpp.

◆ testReplayDelta()

void ripple::test::LedgerReplayer_test::testReplayDelta ( )

Definition at line 949 of file LedgerReplay_test.cpp.

◆ testTaskParameter()

void ripple::test::LedgerReplayer_test::testTaskParameter ( )

Definition at line 1002 of file LedgerReplay_test.cpp.

◆ testConfig()

void ripple::test::LedgerReplayer_test::testConfig ( )

Definition at line 1055 of file LedgerReplay_test.cpp.

◆ testHandshake()

void ripple::test::LedgerReplayer_test::testHandshake ( )

Definition at line 1085 of file LedgerReplay_test.cpp.

◆ testAllLocal()

void ripple::test::LedgerReplayer_test::testAllLocal ( int  totalReplay)

Definition at line 1127 of file LedgerReplay_test.cpp.

◆ testAllInboundLedgers()

void ripple::test::LedgerReplayer_test::testAllInboundLedgers ( int  totalReplay)

Definition at line 1169 of file LedgerReplay_test.cpp.

◆ testPeerSetBehavior()

void ripple::test::LedgerReplayer_test::testPeerSetBehavior ( PeerSetBehavior  peerSetBehavior,
int  totalReplay = 4 
)

Definition at line 1199 of file LedgerReplay_test.cpp.

◆ testStop()

void ripple::test::LedgerReplayer_test::testStop ( )

Definition at line 1251 of file LedgerReplay_test.cpp.

◆ testSkipListBadReply()

void ripple::test::LedgerReplayer_test::testSkipListBadReply ( )

Definition at line 1281 of file LedgerReplay_test.cpp.

◆ testLedgerDeltaBadReply()

void ripple::test::LedgerReplayer_test::testLedgerDeltaBadReply ( )

Definition at line 1326 of file LedgerReplay_test.cpp.

◆ testLedgerReplayOverlap()

void ripple::test::LedgerReplayer_test::testLedgerReplayOverlap ( )

Definition at line 1361 of file LedgerReplay_test.cpp.

◆ run()

void ripple::test::LedgerReplayer_test::run ( )
override

Definition at line 1447 of file LedgerReplay_test.cpp.