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

Public Member Functions

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="")
 

Protected Member Functions

void setup (std::string const &testName)
 
void expectResult (std::string const &expected, std::string const &message="")
 

Protected Attributes

std::string output_
 
std::unique_ptr< Json::Writerwriter_
 

Static Private Member Functions

static std::string addPrefix (std::string const &message)
 

Detailed Description

Definition at line 30 of file TestOutputSuite.h.

Member Function Documentation

◆ setup()

void ripple::test::TestOutputSuite::setup ( std::string const &  testName)
protected

Definition at line 37 of file TestOutputSuite.h.

◆ expectResult()

void ripple::test::TestOutputSuite::expectResult ( std::string const &  expected,
std::string const &  message = "" 
)
protected

Definition at line 46 of file TestOutputSuite.h.

◆ 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

◆ output_

std::string ripple::test::TestOutputSuite::output_
protected

Definition at line 33 of file TestOutputSuite.h.

◆ writer_

std::unique_ptr<Json::Writer> ripple::test::TestOutputSuite::writer_
protected

Definition at line 34 of file TestOutputSuite.h.