rippled
Public Member Functions | Static Private Member Functions | List of all members
ripple::SociDB_test Class Referencefinal
Inheritance diagram for ripple::SociDB_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::SociDB_test:
Collaboration graph
[legend]

Public Member Functions

 SociDB_test ()
 
 ~SociDB_test ()
 
void testSQLiteFileNames ()
 
void testSQLiteSession ()
 
void testSQLiteSelect ()
 
void testSQLiteDeleteWithSubselect ()
 
void run () override
 
template<class S , class T >
bool expectEquals (S actual, T expected, std::string const &message="")
 
template<class S , class T >
bool expectNotEquals (S actual, T expected, std::string const &message="")
 
template<class Collection >
bool expectCollectionEquals (Collection const &actual, Collection const &expected, std::string const &message="")
 
template<class Exception , class Functor >
bool expectException (Functor f, std::string const &message="")
 
template<class Functor >
bool expectException (Functor f, std::string const &message="")
 

Static Private Member Functions

static void setupSQLiteConfig (BasicConfig &config, boost::filesystem::path const &dbPath)
 
static void cleanupDatabaseDir (boost::filesystem::path const &dbPath)
 
static void setupDatabaseDir (boost::filesystem::path const &dbPath)
 
static boost::filesystem::path getDatabasePath ()
 
static std::string addPrefix (std::string const &message)
 

Detailed Description

Definition at line 29 of file SociDB_test.cpp.

Constructor & Destructor Documentation

◆ SociDB_test()

ripple::SociDB_test::SociDB_test ( )

Definition at line 76 of file SociDB_test.cpp.

◆ ~SociDB_test()

ripple::SociDB_test::~SociDB_test ( )

Definition at line 86 of file SociDB_test.cpp.

Member Function Documentation

◆ setupSQLiteConfig()

static void ripple::SociDB_test::setupSQLiteConfig ( BasicConfig config,
boost::filesystem::path const &  dbPath 
)
staticprivate

Definition at line 33 of file SociDB_test.cpp.

◆ cleanupDatabaseDir()

static void ripple::SociDB_test::cleanupDatabaseDir ( boost::filesystem::path const &  dbPath)
staticprivate

Definition at line 44 of file SociDB_test.cpp.

◆ setupDatabaseDir()

static void ripple::SociDB_test::setupDatabaseDir ( boost::filesystem::path const &  dbPath)
staticprivate

Definition at line 53 of file SociDB_test.cpp.

◆ getDatabasePath()

static boost::filesystem::path ripple::SociDB_test::getDatabasePath ( )
staticprivate

Definition at line 70 of file SociDB_test.cpp.

◆ testSQLiteFileNames()

void ripple::SociDB_test::testSQLiteFileNames ( )

Definition at line 97 of file SociDB_test.cpp.

◆ testSQLiteSession()

void ripple::SociDB_test::testSQLiteSession ( )

Definition at line 117 of file SociDB_test.cpp.

◆ testSQLiteSelect()

void ripple::SociDB_test::testSQLiteSelect ( )

Definition at line 178 of file SociDB_test.cpp.

◆ testSQLiteDeleteWithSubselect()

void ripple::SociDB_test::testSQLiteDeleteWithSubselect ( )

Definition at line 312 of file SociDB_test.cpp.

◆ run()

void ripple::SociDB_test::run ( )
override

Definition at line 362 of file SociDB_test.cpp.

◆ expectEquals()

template<class S , class T >
bool ripple::TestSuite::expectEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 33 of file TestSuite.h.

◆ expectNotEquals()

template<class S , class T >
bool ripple::TestSuite::expectNotEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 51 of file TestSuite.h.

◆ expectCollectionEquals()

template<class Collection >
bool ripple::TestSuite::expectCollectionEquals ( Collection const &  actual,
Collection const &  expected,
std::string const &  message = "" 
)
inherited

Definition at line 69 of file TestSuite.h.

◆ expectException() [1/2]

template<class Exception , class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 99 of file TestSuite.h.

◆ expectException() [2/2]

template<class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 115 of file TestSuite.h.

◆ addPrefix()

static std::string ripple::TestSuite::addPrefix ( std::string const &  message)
staticprivateinherited

Definition at line 131 of file TestSuite.h.