Classes | Namespaces | Macros | Typedefs
unit_test_suite.hpp File Reference
#include <boost/test/unit_test_suite_impl.hpp>
#include <boost/test/framework.hpp>
Include dependency graph for unit_test_suite.hpp:

Go to the source code of this file.

Classes

struct  boost::unit_test::ut_detail::nil_t
 

Namespaces

 boost
 
 boost::unit_test
 
 boost::unit_test::ut_detail
 

Macros

#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)
 
#define BOOST_AUTO_TEST_CASE_TEMPLATE(test_name, type_name, TL)
 
#define BOOST_AUTO_TEST_SUITE(suite_name)
 
#define BOOST_AUTO_TEST_SUITE_END()
 
#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, F)
 
#define BOOST_FIXTURE_TEST_SUITE(suite_name, F)
 
#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)
 
#define BOOST_TEST_CASE_TEMPLATE_FUNCTION(name, type_name)
 
#define BOOST_TEST_SUITE(testsuite_name)   ( new boost::unit_test::test_suite( testsuite_name ) )
 

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 )

Definition at line 209 of file unit_test_suite.hpp.

#define BOOST_AUTO_TC_UNIQUE_ID (   test_name)    BOOST_JOIN( test_name, _id )

Definition at line 210 of file unit_test_suite.hpp.

#define BOOST_AUTO_TEST_CASE (   test_name)    BOOST_FIXTURE_TEST_CASE( test_name, BOOST_AUTO_TEST_CASE_FIXTURE )

Definition at line 117 of file unit_test_suite.hpp.

#define BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES (   test_name,
 
)
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 BOOST_AUTO_TC_UNIQUE_ID(test_name)

Definition at line 71 of file unit_test_suite.hpp.

#define BOOST_AUTO_TEST_CASE_TEMPLATE (   test_name,
  type_name,
  TL 
)
Value:
template<typename type_name> \
struct test_name : public BOOST_AUTO_TEST_CASE_FIXTURE \
{ void test_method(); }; \
\
struct BOOST_AUTO_TC_INVOKER( test_name ) { \
template<typename TestType> \
static void run( boost::type<TestType>* = 0 ) \
{ \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" Fixture entry.");\
test_name<TestType> t; \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" entry."); \
t.test_method(); \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" exit."); \
} \
}; \
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() \
#define BOOST_AUTO_TC_INVOKER(test_name)
#define BOOST_AUTO_TU_REGISTRAR(test_name)

Definition at line 125 of file unit_test_suite.hpp.

#define BOOST_AUTO_TEST_SUITE (   suite_name)
Value:
namespace suite_name { \
BOOST_AUTO_TU_REGISTRAR( suite_name )( BOOST_STRINGIZE( suite_name ) ); \
#define BOOST_AUTO_TU_REGISTRAR(test_name)

Definition at line 44 of file unit_test_suite.hpp.

#define BOOST_AUTO_TEST_SUITE_END ( )
Value:
BOOST_AUTO_TU_REGISTRAR( BOOST_JOIN( end_suite, __LINE__ ) )( 1 ); \
} \
#define BOOST_AUTO_TU_REGISTRAR(test_name)

Definition at line 62 of file unit_test_suite.hpp.

#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__ )

Definition at line 207 of file unit_test_suite.hpp.

#define BOOST_CLASS_TEST_CASE (   test_function,
  tc_instance 
)    boost::unit_test::make_test_case((test_function), BOOST_TEST_STRINGIZE( test_function ), tc_instance )

Definition at line 30 of file unit_test_suite.hpp.

#define BOOST_FIXTURE_TEST_CASE (   test_name,
 
)
Value:
struct test_name : public F { void test_method(); }; \
\
static void BOOST_AUTO_TC_INVOKER( test_name )() \
{ \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" Fixture entry."); \
test_name t; \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" entry."); \
t.test_method(); \
BOOST_TEST_CHECKPOINT('"' << #test_name << "\" exit."); \
} \
\
struct BOOST_AUTO_TC_UNIQUE_ID( test_name ) {}; \
BOOST_AUTO_TU_REGISTRAR( test_name )( \
boost::unit_test::make_test_case( \
&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() \
#define BOOST_AUTO_TC_INVOKER(test_name)
#define BOOST_AUTO_TC_UNIQUE_ID(test_name)
#define BOOST_AUTO_TU_REGISTRAR(test_name)

Definition at line 90 of file unit_test_suite.hpp.

#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
#define BOOST_AUTO_TEST_SUITE(suite_name)

Definition at line 53 of file unit_test_suite.hpp.

#define BOOST_GLOBAL_FIXTURE (   F)    static boost::unit_test::ut_detail::global_fixture_impl<F> BOOST_JOIN( gf_, F ) ; \

Definition at line 184 of file unit_test_suite.hpp.

#define BOOST_TEST_CASE (   test_function)    boost::unit_test::make_test_case( boost::unit_test::callback0<>(test_function), BOOST_TEST_STRINGIZE( test_function ) )

Definition at line 28 of file unit_test_suite.hpp.

#define BOOST_TEST_CASE_TEMPLATE (   name,
  typelist 
)
Value:
boost::unit_test::ut_detail::template_test_case_gen<name,typelist >( \
BOOST_TEST_STRINGIZE( name ) ) \

Definition at line 155 of file unit_test_suite.hpp.

#define BOOST_TEST_CASE_TEMPLATE_FUNCTION (   name,
  type_name 
)
Value:
template<typename type_name> \
void BOOST_JOIN( name, _impl )( boost::type<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 BOOST_JOIN( name, _impl )( boost::type<type_name>* ) \

Definition at line 164 of file unit_test_suite.hpp.

#define BOOST_TEST_SUITE (   testsuite_name)    ( new boost::unit_test::test_suite( testsuite_name ) )

Definition at line 37 of file unit_test_suite.hpp.

Typedef Documentation

Definition at line 201 of file unit_test_suite.hpp.



rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:40