Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:52:41

0001 //  (C) Copyright Gennadiy Rozental 2001.
0002 //  Distributed under the Boost Software License, Version 1.0.
0003 //  (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 //  See http://www.boost.org/libs/test for the library home page.
0007 //
0008 //  File        : $RCSfile$
0009 //
0010 //  Version     : $Revision: -1 $
0011 //
0012 //  Description : defines traverse_test_tree algorithm
0013 // ***************************************************************************
0014 
0015 #ifndef BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
0016 #define BOOST_TEST_TREE_TRAVERSE_HPP_100211GER
0017 
0018 // Boost.Test
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 // **************               traverse_test_tree             ************** //
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 } // namespace unit_test
0054 } // namespace boost
0055 
0056 #include <boost/test/detail/enable_warnings.hpp>
0057 
0058 #endif // BOOST_TEST_TREE_TRAVERSE_HPP_100211GER