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

Holds the set of testcase results in a suite. More...

#include <results.h>

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

 suite_results (std::string const &name="")
 
std::string const & name () const
 Returns the name of this suite.
 
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 (case_results &&r)
 Insert a set of testcase results.
 
void insert (case_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< case_results >
 

Private Attributes

std::string name_
 
std::size_t total_ = 0
 
std::size_t failed_ = 0
 
cont_type m_cont
 

Detailed Description

Holds the set of testcase results in a suite.

Definition at line 112 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< case_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< case_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< case_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< case_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< case_results > >::const_iterator = typename cont_type::const_iterator
inherited

Definition at line 42 of file const_container.h.

Constructor & Destructor Documentation

◆ suite_results()

beast::unit_test::suite_results::suite_results ( std::string const &  name = "")
explicit

Definition at line 120 of file results.h.

Member Function Documentation

◆ name()

std::string const & beast::unit_test::suite_results::name ( ) const

Returns the name of this suite.

Definition at line 126 of file results.h.

◆ total()

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

Returns the total number of test conditions.

Definition at line 133 of file results.h.

◆ failed()

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

Returns the number of failures.

Definition at line 140 of file results.h.

◆ insert() [1/2]

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

Insert a set of testcase results.

Definition at line 148 of file results.h.

◆ insert() [2/2]

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

Definition at line 156 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< case_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

◆ name_

std::string beast::unit_test::suite_results::name_
private

Definition at line 115 of file results.h.

◆ total_

std::size_t beast::unit_test::suite_results::total_ = 0
private

Definition at line 116 of file results.h.

◆ failed_

std::size_t beast::unit_test::suite_results::failed_ = 0
private

Definition at line 117 of file results.h.

◆ m_cont

Definition at line 22 of file const_container.h.