Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::unit_test::test_suite Class Reference

#include <unit_test_suite_impl.hpp>

Inheritance diagram for boost::unit_test::test_suite:
Collaboration diagram for boost::unit_test::test_suite:

Public Types

enum  { type = tut_suite }
 
enum  { type = tut_any }
 

Public Member Functions

 test_suite (const_string ts_name)
 
void add (test_unit *tu, counter_t expected_failures=0, unsigned timeout=0)
 
void add (test_unit_generator const &gen, unsigned timeout=0)
 
void remove (test_unit_id id)
 
test_unit_id get (const_string tu_name) const
 
std::size_t size () const
 
void depends_on (test_unit *tu)
 
bool check_dependencies () const
 
typedef BOOST_READONLY_PROPERTY (test_unit_id,(framework_impl)) id_t
 
typedef BOOST_READONLY_PROPERTY (test_unit_id,(test_suite)) parent_id_t
 
void increase_exp_fail (unsigned num)
 

Public Attributes

readonly_property< test_unit_type > p_type
 
readonly_property< const_stringp_type_name
 
id_t p_id
 
parent_id_t p_parent_id
 
readwrite_property< std::string > p_name
 
readwrite_property< unsigned > p_timeout
 
readwrite_property< counter_t > p_expected_failures
 
readwrite_property< bool > p_enabled
 

Protected Member Functions

virtual ~test_suite ()
 

Protected Attributes

std::vector< test_unit_id > m_members
 

Friends

class framework_impl
 
BOOST_TEST_DECL void traverse_test_tree (test_suite const &, test_tree_visitor &)
 

Member Enumeration Documentation

anonymous enum
inherited
Enumerator
type 
anonymous enum
Enumerator
type 

Constructor & Destructor Documentation

boost::unit_test::test_suite::test_suite ( const_string  ts_name)
explicit
virtual boost::unit_test::test_suite::~test_suite ( )
inlineprotectedvirtual

Member Function Documentation

void boost::unit_test::test_suite::add ( test_unit tu,
counter_t  expected_failures = 0,
unsigned  timeout = 0 
)
void boost::unit_test::test_suite::add ( test_unit_generator const &  gen,
unsigned  timeout = 0 
)
typedef boost::unit_test::test_unit::BOOST_READONLY_PROPERTY ( test_unit_id  ,
(framework_impl)   
)
inherited
typedef boost::unit_test::test_unit::BOOST_READONLY_PROPERTY ( test_unit_id  ,
(test_suite  
)
inherited
bool boost::unit_test::test_unit::check_dependencies ( ) const
inherited
void boost::unit_test::test_unit::depends_on ( test_unit tu)
inherited
test_unit_id boost::unit_test::test_suite::get ( const_string  tu_name) const
void boost::unit_test::test_unit::increase_exp_fail ( unsigned  num)
inherited
void boost::unit_test::test_suite::remove ( test_unit_id  id)
std::size_t boost::unit_test::test_suite::size ( void  ) const
inline

Friends And Related Function Documentation

friend class framework_impl
friend
BOOST_TEST_DECL void traverse_test_tree ( test_suite const &  ,
test_tree_visitor  
)
friend

Member Data Documentation

std::vector<test_unit_id> boost::unit_test::test_suite::m_members
protected
readwrite_property<bool> boost::unit_test::test_unit::p_enabled
mutableinherited
readwrite_property<counter_t> boost::unit_test::test_unit::p_expected_failures
inherited
id_t boost::unit_test::test_unit::p_id
inherited
readwrite_property<std::string> boost::unit_test::test_unit::p_name
inherited
parent_id_t boost::unit_test::test_unit::p_parent_id
inherited
readwrite_property<unsigned> boost::unit_test::test_unit::p_timeout
inherited
readonly_property<test_unit_type> boost::unit_test::test_unit::p_type
inherited
readonly_property<const_string> boost::unit_test::test_unit::p_type_name
inherited

The documentation for this class was generated from the following file: