rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
beast::unit_test::results Class Reference

Holds the results of running a set of testsuites. More...

#include <results.h>

Inheritance diagram for beast::unit_test::results:
Inheritance graph
[legend]
Collaboration diagram for beast::unit_test::results:
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

 results ()
 
std::size_t cases () const
 Returns the total number of test cases.
 
std::size_t total () const
 Returns the total number of test conditions.
 
std::size_t failed () const
 Returns the number of failures.
 
bool empty () const
 Returns true if the container is empty.
 
size_type size () const
 Returns the number of items in the container.
 
void insert (suite_results &&r)
 Insert a set of suite results.
 
void insert (suite_results const &r)
 
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< suite_results >
 

Private Attributes

std::size_t m_cases
 
std::size_t total_
 
std::size_t failed_
 
cont_type m_cont
 

Detailed Description

Holds the results of running a set of testsuites.

Definition at line 169 of file results.h.

Member Typedef Documentation

◆ cont_type

Definition at line 20 of file const_container.h.

◆ value_type

using beast::unit_test::detail::const_container< std::vector< suite_results > >::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< suite_results > >::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< suite_results > >::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< suite_results > >::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< suite_results > >::const_iterator = typename cont_type::const_iterator
inherited

Definition at line 42 of file const_container.h.

Constructor & Destructor Documentation

◆ results()

beast::unit_test::results::results ( )

Definition at line 177 of file results.h.

Member Function Documentation

◆ cases()

std::size_t beast::unit_test::results::cases ( ) const

Returns the total number of test cases.

Definition at line 183 of file results.h.

◆ total()

std::size_t beast::unit_test::results::total ( ) const

Returns the total number of test conditions.

Definition at line 190 of file results.h.

◆ failed()

std::size_t beast::unit_test::results::failed ( ) const

Returns the number of failures.

Definition at line 197 of file results.h.

◆ insert() [1/2]

void beast::unit_test::results::insert ( suite_results &&  r)

Insert a set of suite results.

Definition at line 205 of file results.h.

◆ insert() [2/2]

void beast::unit_test::results::insert ( suite_results const &  r)

Definition at line 214 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< suite_results > >::cont ( ) const
protectedinherited

Definition at line 32 of file const_container.h.

◆ empty()

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

◆ m_cases

std::size_t beast::unit_test::results::m_cases
private

Definition at line 172 of file results.h.

◆ total_

std::size_t beast::unit_test::results::total_
private

Definition at line 173 of file results.h.

◆ failed_

std::size_t beast::unit_test::results::failed_
private

Definition at line 174 of file results.h.

◆ m_cont

Definition at line 22 of file const_container.h.