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 876 of file LedgerReplay_test.cpp.

Member Function Documentation

◆ testProofPath()

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

Definition at line 879 of file LedgerReplay_test.cpp.

◆ testReplayDelta()

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

Definition at line 943 of file LedgerReplay_test.cpp.

◆ testTaskParameter()

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

Definition at line 996 of file LedgerReplay_test.cpp.

◆ testConfig()

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

Definition at line 1049 of file LedgerReplay_test.cpp.

◆ testHandshake()

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

Definition at line 1079 of file LedgerReplay_test.cpp.

◆ testAllLocal()

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

Definition at line 1121 of file LedgerReplay_test.cpp.

◆ testAllInboundLedgers()

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

Definition at line 1163 of file LedgerReplay_test.cpp.

◆ testPeerSetBehavior()

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

Definition at line 1193 of file LedgerReplay_test.cpp.

◆ testStop()

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

Definition at line 1245 of file LedgerReplay_test.cpp.

◆ testSkipListBadReply()

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

Definition at line 1275 of file LedgerReplay_test.cpp.

◆ testLedgerDeltaBadReply()

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

Definition at line 1320 of file LedgerReplay_test.cpp.

◆ testLedgerReplayOverlap()

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

Definition at line 1355 of file LedgerReplay_test.cpp.

◆ run()

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

Definition at line 1441 of file LedgerReplay_test.cpp.