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

Public Member Functions

 cluster_test ()
 
std::unique_ptr< Clustercreate (std::vector< PublicKey > const &nodes)
 
PublicKey randomNode ()
 
void testMembership ()
 
void testUpdating ()
 
void testConfigLoad ()
 
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 std::string addPrefix (std::string const &message)
 

Private Attributes

test::SuiteJournal journal_
 

Detailed Description

Definition at line 30 of file cluster_test.cpp.

Constructor & Destructor Documentation

◆ cluster_test()

ripple::tests::cluster_test::cluster_test ( )

Definition at line 35 of file cluster_test.cpp.

Member Function Documentation

◆ create()

std::unique_ptr<Cluster> ripple::tests::cluster_test::create ( std::vector< PublicKey > const &  nodes)

Definition at line 40 of file cluster_test.cpp.

◆ randomNode()

PublicKey ripple::tests::cluster_test::randomNode ( )

Definition at line 51 of file cluster_test.cpp.

◆ testMembership()

void ripple::tests::cluster_test::testMembership ( )

Definition at line 57 of file cluster_test.cpp.

◆ testUpdating()

void ripple::tests::cluster_test::testUpdating ( )

Definition at line 132 of file cluster_test.cpp.

◆ testConfigLoad()

void ripple::tests::cluster_test::testConfigLoad ( )

Definition at line 190 of file cluster_test.cpp.

◆ run()

void ripple::tests::cluster_test::run ( )
override

Definition at line 261 of file cluster_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.

Member Data Documentation

◆ journal_

test::SuiteJournal ripple::tests::cluster_test::journal_
private

Definition at line 32 of file cluster_test.cpp.