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

Public Member Functions

void testHandleMismatch ()
 
void run () override
 

Static Public Member Functions

static std::shared_ptr< LedgermakeLedger (std::shared_ptr< Ledger const > const &prev, jtx::Env &env, LedgerHistory &lh, NetClock::duration closeOffset, std::shared_ptr< STTx const > stx={})
 Generate a new ledger by hand, applying a specific close time offset and optionally inserting a transaction. More...
 

Detailed Description

Definition at line 35 of file LedgerHistory_test.cpp.

Member Function Documentation

◆ makeLedger()

static std::shared_ptr<Ledger> ripple::test::LedgerHistory_test::makeLedger ( std::shared_ptr< Ledger const > const &  prev,
jtx::Env env,
LedgerHistory lh,
NetClock::duration  closeOffset,
std::shared_ptr< STTx const >  stx = {} 
)
static

Generate a new ledger by hand, applying a specific close time offset and optionally inserting a transaction.

If prev is nullptr, then the genesis ledger is made and no offset or transaction is applied.

Definition at line 46 of file LedgerHistory_test.cpp.

◆ testHandleMismatch()

void ripple::test::LedgerHistory_test::testHandleMismatch ( )

Definition at line 90 of file LedgerHistory_test.cpp.

◆ run()

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

Definition at line 196 of file LedgerHistory_test.cpp.