xrpld
Loading...
Searching...
No Matches
beast::unit_test::CaseResults::TestsT Class Reference
Inheritance diagram for beast::unit_test::CaseResults::TestsT:
Collaboration diagram for beast::unit_test::CaseResults::TestsT:

Public Types

using value_type
using size_type
using difference_type
using iterator
using const_iterator

Public Member Functions

 TestsT ()=default
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 ()

Private Types

using cont_type

Private Attributes

std::size_t failed_ {0}
cont_type cont_

Detailed Description

Definition at line 35 of file results.h.

Member Typedef Documentation

◆ cont_type

using beast::unit_test::detail::ConstContainer< std::vector< Test > >::cont_type
privateinherited

Definition at line 17 of file const_container.h.

◆ value_type

using beast::unit_test::detail::ConstContainer< std::vector< Test > >::value_type
inherited

Definition at line 35 of file const_container.h.

◆ size_type

using beast::unit_test::detail::ConstContainer< std::vector< Test > >::size_type
inherited

Definition at line 36 of file const_container.h.

◆ difference_type

using beast::unit_test::detail::ConstContainer< std::vector< Test > >::difference_type
inherited

Definition at line 37 of file const_container.h.

◆ iterator

Definition at line 38 of file const_container.h.

◆ const_iterator

using beast::unit_test::detail::ConstContainer< std::vector< Test > >::const_iterator
inherited

Definition at line 39 of file const_container.h.

Constructor & Destructor Documentation

◆ TestsT()

beast::unit_test::CaseResults::TestsT::TestsT ( )
default

Member Function Documentation

◆ total()

std::size_t beast::unit_test::CaseResults::TestsT::total ( ) const
nodiscard

Returns the total number of test conditions.

Definition at line 45 of file results.h.

◆ failed()

std::size_t beast::unit_test::CaseResults::TestsT::failed ( ) const
nodiscard

Returns the number of failed test conditions.

Definition at line 52 of file results.h.

◆ pass()

void beast::unit_test::CaseResults::TestsT::pass ( )

Register a successful test condition.

Definition at line 59 of file results.h.

◆ fail()

void beast::unit_test::CaseResults::TestsT::fail ( std::string const & reason = "")

Register a failed test condition.

Definition at line 66 of file results.h.

◆ cont()

Definition at line 23 of file const_container.h.

◆ empty()

bool beast::unit_test::detail::ConstContainer< std::vector< Test > >::empty ( ) const
nodiscardinherited

Returns true if the container is empty.

Definition at line 43 of file const_container.h.

◆ size()

size_type beast::unit_test::detail::ConstContainer< std::vector< Test > >::size ( ) const
nodiscardinherited

Returns the number of items in the container.

Definition at line 50 of file const_container.h.

◆ begin()

const_iterator beast::unit_test::detail::ConstContainer< std::vector< Test > >::begin ( ) const
nodiscardinherited

Returns forward iterators for traversal.

Definition at line 58 of file const_container.h.

◆ cbegin()

const_iterator beast::unit_test::detail::ConstContainer< std::vector< Test > >::cbegin ( ) const
nodiscardinherited

Definition at line 64 of file const_container.h.

◆ end()

Definition at line 70 of file const_container.h.

◆ cend()

const_iterator beast::unit_test::detail::ConstContainer< std::vector< Test > >::cend ( ) const
nodiscardinherited

Definition at line 76 of file const_container.h.

Member Data Documentation

◆ failed_

std::size_t beast::unit_test::CaseResults::TestsT::failed_ {0}
private

Definition at line 38 of file results.h.

◆ cont_

Definition at line 19 of file const_container.h.