#include <boost/test/unit_test_suite_impl.hpp>
#include <boost/test/framework.hpp>
Go to the source code of this file.
|
#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 ) ) |
|
#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_EXPECTED_FAILURES |
( |
|
test_name, |
|
|
|
n |
|
) |
| |
Value: \
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 )() \
{} \
} 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> \
{ void test_method(); }; \
\
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::unit_test::ut_detail::template_test_case_gen<
\ 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 | ) |
|
#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 |
|
) |
| |
Value:struct test_name : public F { void test_method(); }; \
\
{ \
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."); \
} \
\
boost::unit_test::make_test_case( \
boost::unit_test::ut_detail::auto_tc_exp_fail<
\ \
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, |
|
|
|
F |
|
) |
| |
Value:::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 ) ; \ |
#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::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 ) ) |