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

Public Types

using value_type = typename cont_type::value_type
 
using size_type = typename cont_type::size_type
 
using difference_type = typename cont_type::difference_type
 
using iterator = typename cont_type::const_iterator
 
using const_iterator = typename cont_type::const_iterator
 

Public Member Functions

 tests_t ()
 
std::size_t total () const
 Returns the total number of test conditions.
 
std::size_t failed () const
 Returns the number of failed test conditions.
 
void pass ()
 Register a successful test condition.
 
void fail (std::string const &reason="")
 Register a failed test condition.
 
bool empty () const
 Returns true if the container is empty.
 
size_type size () const
 Returns the number of items in the container.
 
const_iterator begin () const
 Returns forward iterators for traversal.
 
const_iterator cbegin () const
 
const_iterator end () const
 
const_iterator cend () const
 

Protected Member Functions

cont_typecont ()
 
cont_type const & cont () const
 

Private Types

using cont_type = std::vector< test >
 

Private Attributes

std::size_t failed_
 
cont_type m_cont
 

Detailed Description

Definition at line 37 of file results.h.

Member Typedef Documentation

◆ cont_type

using beast::unit_test::detail::const_container< std::vector< test > >::cont_type = std::vector< test >
privateinherited

Definition at line 20 of file const_container.h.

◆ value_type

using beast::unit_test::detail::const_container< std::vector< test > >::value_type = typename cont_type::value_type
inherited

Definition at line 38 of file const_container.h.

◆ size_type

using beast::unit_test::detail::const_container< std::vector< test > >::size_type = typename cont_type::size_type
inherited

Definition at line 39 of file const_container.h.

◆ difference_type

using beast::unit_test::detail::const_container< std::vector< test > >::difference_type = typename cont_type::difference_type
inherited

Definition at line 40 of file const_container.h.

◆ iterator

using beast::unit_test::detail::const_container< std::vector< test > >::iterator = typename cont_type::const_iterator
inherited

Definition at line 41 of file const_container.h.

◆ const_iterator

using beast::unit_test::detail::const_container< std::vector< test > >::const_iterator = typename cont_type::const_iterator
inherited

Definition at line 42 of file const_container.h.

Constructor & Destructor Documentation

◆ tests_t()

beast::unit_test::case_results::tests_t::tests_t ( )

Definition at line 43 of file results.h.

Member Function Documentation

◆ total()

std::size_t beast::unit_test::case_results::tests_t::total ( ) const

Returns the total number of test conditions.

Definition at line 49 of file results.h.

◆ failed()

std::size_t beast::unit_test::case_results::tests_t::failed ( ) const

Returns the number of failed test conditions.

Definition at line 56 of file results.h.

◆ pass()

void beast::unit_test::case_results::tests_t::pass ( )

Register a successful test condition.

Definition at line 63 of file results.h.

◆ fail()

void beast::unit_test::case_results::tests_t::fail ( std::string const &  reason = "")

Register a failed test condition.

Definition at line 70 of file results.h.

◆ cont() [1/2]

Definition at line 26 of file const_container.h.

◆ cont() [2/2]

cont_type const & beast::unit_test::detail::const_container< std::vector< test > >::cont ( ) const
protectedinherited

Definition at line 32 of file const_container.h.

◆ empty()

bool beast::unit_test::detail::const_container< std::vector< test > >::empty ( ) const
inherited

Returns true if the container is empty.

Definition at line 46 of file const_container.h.

◆ size()

Returns the number of items in the container.

Definition at line 53 of file const_container.h.

◆ begin()

Returns forward iterators for traversal.

Definition at line 61 of file const_container.h.

◆ cbegin()

Definition at line 67 of file const_container.h.

◆ end()

Definition at line 73 of file const_container.h.

◆ cend()

Definition at line 79 of file const_container.h.

Member Data Documentation

◆ failed_

std::size_t beast::unit_test::case_results::tests_t::failed_
private

Definition at line 40 of file results.h.

◆ m_cont

Definition at line 22 of file const_container.h.