Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
unit_test_suite.hpp File Reference
Include dependency graph for unit_test_suite.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::unit_test::ut_detail::nil_t
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::unit_test
 
 boost::unit_test::ut_detail
 

Macros

#define BOOST_TEST_CASE(test_function)   boost::unit_test::make_test_case( boost::unit_test::callback0<>(test_function), BOOST_TEST_STRINGIZE( test_function ) )
 
#define BOOST_CLASS_TEST_CASE(test_function, tc_instance)   boost::unit_test::make_test_case((test_function), BOOST_TEST_STRINGIZE( test_function ), tc_instance )
 
#define BOOST_TEST_SUITE(testsuite_name)   ( new boost::unit_test::test_suite( testsuite_name ) )
 
#define BOOST_AUTO_TEST_SUITE(suite_name)
 
#define BOOST_FIXTURE_TEST_SUITE(suite_name, F)
 
#define BOOST_AUTO_TEST_SUITE_END()
 
#define BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(test_name, n)
 
#define BOOST_FIXTURE_TEST_CASE(test_name, F)
 
#define BOOST_AUTO_TEST_CASE(test_name)   BOOST_FIXTURE_TEST_CASE( test_name, BOOST_AUTO_TEST_CASE_FIXTURE )
 
#define BOOST_FIXTURE_TEST_CASE_TEMPLATE(test_name, type_name, TL, F)
 
#define BOOST_AUTO_TEST_CASE_TEMPLATE(test_name, type_name, TL)   BOOST_FIXTURE_TEST_CASE_TEMPLATE( test_name, type_name, TL, BOOST_AUTO_TEST_CASE_FIXTURE )
 
#define BOOST_TEST_CASE_TEMPLATE(name, typelist)
 
#define BOOST_TEST_CASE_TEMPLATE_FUNCTION(name, type_name)
 
#define BOOST_GLOBAL_FIXTURE(F)   static boost::unit_test::ut_detail::global_fixture_impl<F> BOOST_JOIN( gf_, F ) ; \
 
#define BOOST_AUTO_TU_REGISTRAR(test_name)   static boost::unit_test::ut_detail::auto_test_unit_registrar BOOST_JOIN( BOOST_JOIN( test_name, _registrar ), __LINE__ )
 
#define BOOST_AUTO_TC_INVOKER(test_name)   BOOST_JOIN( test_name, _invoker )
 
#define BOOST_AUTO_TC_UNIQUE_ID(test_name)   BOOST_JOIN( test_name, _id )
 

Typedefs

typedef
::boost::unit_test::ut_detail::nil_t 
BOOST_AUTO_TEST_CASE_FIXTURE
 

Macro Definition Documentation

#define BOOST_AUTO_TC_INVOKER (   test_name)    BOOST_JOIN( test_name, _invoker )
#define BOOST_AUTO_TC_UNIQUE_ID (   test_name)    BOOST_JOIN( test_name, _id )
#define BOOST_AUTO_TEST_CASE (   test_name)    BOOST_FIXTURE_TEST_CASE( test_name, BOOST_AUTO_TEST_CASE_FIXTURE )
#define BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES (   test_name,
  n 
)
Value:
struct BOOST_AUTO_TC_UNIQUE_ID( test_name ); \
\
static struct BOOST_JOIN( test_name, _exp_fail_num_spec ) \
auto_tc_exp_fail<BOOST_AUTO_TC_UNIQUE_ID( test_name ) > \
{ \
BOOST_JOIN( test_name, _exp_fail_num_spec )() \
auto_tc_exp_fail<BOOST_AUTO_TC_UNIQUE_ID( test_name ) >( n ) \
{} \
} BOOST_JOIN( test_name, _exp_fail_num_spec_inst ); \
\
#define n
Definition: register_functions_iterate.hpp:7
Definition: parameterized_test.hpp:51
#define BOOST_JOIN(X, Y)
Definition: suffix.hpp:544
#define BOOST_AUTO_TC_UNIQUE_ID(test_name)
Definition: unit_test_suite.hpp:211
#define BOOST_AUTO_TEST_CASE_TEMPLATE (   test_name,
  type_name,
  TL 
)    BOOST_FIXTURE_TEST_CASE_TEMPLATE( test_name, type_name, TL, BOOST_AUTO_TEST_CASE_FIXTURE )
#define BOOST_AUTO_TEST_SUITE (   suite_name)
Value:
namespace suite_name { \
BOOST_AUTO_TU_REGISTRAR( suite_name )( BOOST_STRINGIZE( suite_name ) ); \
#define BOOST_STRINGIZE(X)
Definition: suffix.hpp:533
#define BOOST_AUTO_TU_REGISTRAR(test_name)
Definition: unit_test_suite.hpp:208
#define BOOST_AUTO_TEST_SUITE_END ( )
Value:
BOOST_AUTO_TU_REGISTRAR( BOOST_JOIN( end_suite, __LINE__ ) )( 1 ); \
} \
#define BOOST_JOIN(X, Y)
Definition: suffix.hpp:544
#define BOOST_AUTO_TU_REGISTRAR(test_name)
Definition: unit_test_suite.hpp:208
#define BOOST_AUTO_TU_REGISTRAR (   test_name)    static boost::unit_test::ut_detail::auto_test_unit_registrar BOOST_JOIN( BOOST_JOIN( test_name, _registrar ), __LINE__ )
#define BOOST_CLASS_TEST_CASE (   test_function,
  tc_instance 
)    boost::unit_test::make_test_case((test_function), BOOST_TEST_STRINGIZE( test_function ), tc_instance )
#define BOOST_FIXTURE_TEST_CASE (   test_name,
 
)
Value:
struct test_name : public F { void test_method(); }; \
\
static void BOOST_AUTO_TC_INVOKER( test_name )() \
{ \
test_name t; \
t.test_method(); \
} \
\
struct BOOST_AUTO_TC_UNIQUE_ID( test_name ) {}; \
&BOOST_AUTO_TC_INVOKER( test_name ), #test_name ), \
boost::unit_test::ut_detail::auto_tc_exp_fail< \
BOOST_AUTO_TC_UNIQUE_ID( test_name )>::instance()->value() ); \
\
void test_name::test_method() \
void
Definition: is_convertible.hpp:460
ut_detail::param_test_case_generator< ParamType, ParamIter > make_test_case(callback1< ParamType > const &test_func, const_string tc_name, ParamIter par_begin, ParamIter par_end)
Definition: parameterized_test.hpp:129
#define BOOST_AUTO_TC_INVOKER(test_name)
Definition: unit_test_suite.hpp:210
in t
Definition: flyweight.hpp:430
#define BOOST_AUTO_TC_UNIQUE_ID(test_name)
Definition: unit_test_suite.hpp:211
#define BOOST_AUTO_TU_REGISTRAR(test_name)
Definition: unit_test_suite.hpp:208
#define BOOST_FIXTURE_TEST_CASE_TEMPLATE (   test_name,
  type_name,
  TL,
 
)
Value:
template<typename type_name> \
struct test_name : public F \
{ void test_method(); }; \
\
struct BOOST_AUTO_TC_INVOKER( test_name ) { \
template<typename TestType> \
static void run( boost::type<TestType>* = 0 ) \
{ \
test_name<TestType> t; \
t.test_method(); \
} \
}; \
BOOST_AUTO_TU_REGISTRAR( test_name )( \
boost::unit_test::ut_detail::template_test_case_gen< \
BOOST_AUTO_TC_INVOKER( test_name ),TL >( \
BOOST_STRINGIZE( test_name ) ) ); \
\
template<typename type_name> \
void test_name<type_name>::test_method() \
void
Definition: is_convertible.hpp:460
#define BOOST_AUTO_TC_INVOKER(test_name)
Definition: unit_test_suite.hpp:210
in t
Definition: flyweight.hpp:430
BOOST_IOSTREAMS_DECL const int run
#define BOOST_STRINGIZE(X)
Definition: suffix.hpp:533
#define BOOST_AUTO_TU_REGISTRAR(test_name)
Definition: unit_test_suite.hpp:208
Definition: type.hpp:14
#define BOOST_FIXTURE_TEST_SUITE (   suite_name,
 
)
Value:
BOOST_AUTO_TEST_SUITE( suite_name ) \
::boost::unit_test::ut_detail::nil_t BOOST_AUTO_TEST_CASE_FIXTURE
Definition: unit_test_suite.hpp:202
#define BOOST_AUTO_TEST_SUITE(suite_name)
Definition: unit_test_suite.hpp:44
#define BOOST_GLOBAL_FIXTURE (   F)    static boost::unit_test::ut_detail::global_fixture_impl<F> BOOST_JOIN( gf_, F ) ; \
#define BOOST_TEST_CASE (   test_function)    boost::unit_test::make_test_case( boost::unit_test::callback0<>(test_function), BOOST_TEST_STRINGIZE( test_function ) )
#define BOOST_TEST_CASE_TEMPLATE (   name,
  typelist 
)
Value:
BOOST_TEST_STRINGIZE( name ) ) \
const int name
Definition: gzip.hpp:94
Definition: unit_test_suite_impl.hpp:397
#define BOOST_TEST_CASE_TEMPLATE_FUNCTION (   name,
  type_name 
)
Value:
template<typename type_name> \
\
struct name { \
template<typename TestType> \
static void run( boost::type<TestType>* frwrd = 0 ) \
{ \
BOOST_JOIN( name, _impl )( frwrd ); \
} \
}; \
\
template<typename type_name> \
void
Definition: is_convertible.hpp:460
const int name
Definition: gzip.hpp:94
#define BOOST_JOIN(X, Y)
Definition: suffix.hpp:544
BOOST_IOSTREAMS_DECL const int run
Definition: type.hpp:14
#define BOOST_TEST_SUITE (   testsuite_name)    ( new boost::unit_test::test_suite( testsuite_name ) )

Typedef Documentation