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

Public Member Functions

void testBackend (std::string const &type, std::uint64_t const seedValue, int numObjsToTest=2000)
 
void run () override
 
void storeBatch (Backend &backend, Batch const &batch)
 
void fetchCopyOfBatch (Backend &backend, Batch *pCopy, Batch const &batch)
 
void fetchMissing (Backend &backend, Batch const &batch)
 

Static Public Member Functions

static Batch createPredictableBatch (int numObjects, std::uint64_t seed)
 
static bool areBatchesEqual (Batch const &lhs, Batch const &rhs)
 
static void storeBatch (Database &db, Batch const &batch)
 
static void fetchCopyOfBatch (Database &db, Batch *pCopy, Batch const &batch)
 

Static Public Attributes

static const std::size_t minPayloadBytes = 1
 
static const std::size_t maxPayloadBytes = 2000
 
static const int numObjectsToTest = 2000
 

Detailed Description

Definition at line 34 of file Backend_test.cpp.

Member Function Documentation

◆ testBackend()

void ripple::NodeStore::Backend_test::testBackend ( std::string const &  type,
std::uint64_t const  seedValue,
int  numObjsToTest = 2000 
)

Definition at line 38 of file Backend_test.cpp.

◆ run()

void ripple::NodeStore::Backend_test::run ( )
override

Definition at line 104 of file Backend_test.cpp.

◆ createPredictableBatch()

static Batch ripple::NodeStore::TestBase::createPredictableBatch ( int  numObjects,
std::uint64_t  seed 
)
staticinherited

Definition at line 80 of file TestBase.h.

◆ areBatchesEqual()

static bool ripple::NodeStore::TestBase::areBatchesEqual ( Batch const &  lhs,
Batch const &  rhs 
)
staticinherited

Definition at line 120 of file TestBase.h.

◆ storeBatch() [1/2]

void ripple::NodeStore::TestBase::storeBatch ( Backend backend,
Batch const &  batch 
)
inherited

Definition at line 145 of file TestBase.h.

◆ storeBatch() [2/2]

static void ripple::NodeStore::TestBase::storeBatch ( Database db,
Batch const &  batch 
)
staticinherited

Definition at line 194 of file TestBase.h.

◆ fetchCopyOfBatch() [1/2]

void ripple::NodeStore::TestBase::fetchCopyOfBatch ( Backend backend,
Batch pCopy,
Batch const &  batch 
)
inherited

Definition at line 155 of file TestBase.h.

◆ fetchCopyOfBatch() [2/2]

static void ripple::NodeStore::TestBase::fetchCopyOfBatch ( Database db,
Batch pCopy,
Batch const &  batch 
)
staticinherited

Definition at line 212 of file TestBase.h.

◆ fetchMissing()

void ripple::NodeStore::TestBase::fetchMissing ( Backend backend,
Batch const &  batch 
)
inherited

Definition at line 179 of file TestBase.h.

Member Data Documentation

◆ minPayloadBytes

const std::size_t ripple::NodeStore::TestBase::minPayloadBytes = 1
staticinherited

Definition at line 73 of file TestBase.h.

◆ maxPayloadBytes

const std::size_t ripple::NodeStore::TestBase::maxPayloadBytes = 2000
staticinherited

Definition at line 74 of file TestBase.h.

◆ numObjectsToTest

const int ripple::NodeStore::TestBase::numObjectsToTest = 2000
staticinherited

Definition at line 75 of file TestBase.h.