File indexing completed on 2025-01-18 09:52:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
0016 #define BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
0017
0018
0019 #include <boost/test/detail/config.hpp>
0020
0021 #include <boost/test/tree/test_unit.hpp>
0022 #include <boost/test/tree/visitor.hpp>
0023
0024 #include <boost/test/detail/suppress_warnings.hpp>
0025
0026
0027
0028
0029 namespace boost {
0030 namespace unit_test {
0031
0032
0033
0034
0035
0036 BOOST_TEST_DECL void traverse_test_tree( test_case const&, test_tree_visitor&, bool ignore_status = false );
0037 BOOST_TEST_DECL void traverse_test_tree( test_suite const&, test_tree_visitor&, bool ignore_status = false );
0038 BOOST_TEST_DECL void traverse_test_tree( test_unit_id , test_tree_visitor&, bool ignore_status = false );
0039
0040
0041
0042 inline void
0043 traverse_test_tree( test_unit const& tu, test_tree_visitor& V, bool ignore_status = false )
0044 {
0045 if( tu.p_type == TUT_CASE )
0046 traverse_test_tree( static_cast<test_case const&>( tu ), V, ignore_status );
0047 else
0048 traverse_test_tree( static_cast<test_suite const&>( tu ), V, ignore_status );
0049 }
0050
0051
0052
0053 }
0054 }
0055
0056 #include <boost/test/detail/enable_warnings.hpp>
0057
0058 #endif