rippled
Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
Json::Output_test Struct Reference
Inheritance diagram for Json::Output_test:
Inheritance graph
[legend]
Collaboration diagram for Json::Output_test:
Collaboration graph
[legend]

Public Member Functions

void runTest (std::string const &name, std::string const &valueDesc)
 
void runTest (std::string const &name)
 
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="")
 

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 26 of file Output_test.cpp.

Member Function Documentation

◆ runTest() [1/2]

void Json::Output_test::runTest ( std::string const &  name,
std::string const &  valueDesc 
)

Definition at line 29 of file Output_test.cpp.

◆ runTest() [2/2]

void Json::Output_test::runTest ( std::string const &  name)

Definition at line 45 of file Output_test.cpp.

◆ run()

void Json::Output_test::run ( )
override

Definition at line 51 of file Output_test.cpp.

◆ setup()

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

Definition at line 37 of file TestOutputSuite.h.

◆ expectResult()

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

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_
protectedinherited

Definition at line 33 of file TestOutputSuite.h.

◆ writer_

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

Definition at line 34 of file TestOutputSuite.h.