rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
beast::unit_test::suite::testcase_t Class Reference
Collaboration diagram for beast::unit_test::suite::testcase_t:
Collaboration graph
[legend]

Public Member Functions

 testcase_t (suite &self)
 
void operator() (std::string const &name, abort_t abort=no_abort_on_fail)
 Open a new testcase.
 
scoped_testcase operator() (abort_t abort)
 
template<class T >
scoped_testcase operator<< (T const &t)
 
template<class T >
suite::scoped_testcase operator<< (T const &t)
 

Private Attributes

suitesuite_
 
std::stringstream ss_
 

Detailed Description

Definition at line 112 of file suite.h.

Constructor & Destructor Documentation

◆ testcase_t()

beast::unit_test::suite::testcase_t::testcase_t ( suite self)
explicit

Definition at line 118 of file suite.h.

Member Function Documentation

◆ operator()() [1/2]

void beast::unit_test::suite::testcase_t::operator() ( std::string const &  name,
abort_t  abort = no_abort_on_fail 
)

Open a new testcase.

A testcase is a series of evaluated test conditions. A test suite may have multiple test cases. A test is associated with the last opened testcase. When the test first runs, a default unnamed case is opened. Tests with only one case may omit the call to testcase.

Parameters
abortDetermines if suite continues running after a failure.

Definition at line 372 of file suite.h.

◆ operator()() [2/2]

suite::scoped_testcase beast::unit_test::suite::testcase_t::operator() ( abort_t  abort)

Definition at line 379 of file suite.h.

◆ operator<<() [1/2]

template<class T >
scoped_testcase beast::unit_test::suite::testcase_t::operator<< ( T const &  t)

◆ operator<<() [2/2]

template<class T >
suite::scoped_testcase beast::unit_test::suite::testcase_t::operator<< ( T const &  t)

Definition at line 386 of file suite.h.

Member Data Documentation

◆ suite_

suite& beast::unit_test::suite::testcase_t::suite_
private

Definition at line 114 of file suite.h.

◆ ss_

std::stringstream beast::unit_test::suite::testcase_t::ss_
private

Definition at line 115 of file suite.h.