1 // (C) Copyright Gennadiy Rozental 2001.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
10 // Version : $Revision: -1 $
12 // Description : defines traverse_test_tree algorithm
13 // ***************************************************************************
15 #ifndef BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
16 #define BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
19 #include <boost/test/detail/config.hpp>
21 #include <boost/test/tree/test_unit.hpp>
22 #include <boost/test/tree/visitor.hpp>
24 #include <boost/test/detail/suppress_warnings.hpp>
27 //____________________________________________________________________________//
32 // ************************************************************************** //
33 // ************** traverse_test_tree ************** //
34 // ************************************************************************** //
36 BOOST_TEST_DECL void traverse_test_tree( test_case const&, test_tree_visitor&, bool ignore_status = false );
37 BOOST_TEST_DECL void traverse_test_tree( test_suite const&, test_tree_visitor&, bool ignore_status = false );
38 BOOST_TEST_DECL void traverse_test_tree( test_unit_id , test_tree_visitor&, bool ignore_status = false );
40 //____________________________________________________________________________//
43 traverse_test_tree( test_unit const& tu, test_tree_visitor& V, bool ignore_status = false )
45 if( tu.p_type == TUT_CASE )
46 traverse_test_tree( static_cast<test_case const&>( tu ), V, ignore_status );
48 traverse_test_tree( static_cast<test_suite const&>( tu ), V, ignore_status );
51 //____________________________________________________________________________//
53 } // namespace unit_test
56 #include <boost/test/detail/enable_warnings.hpp>
58 #endif // BOOST_TEST_TREE_TRAVERSE_HPP_100211GER