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 test_tree_visitor
0013 // ***************************************************************************
0014 
0015 #ifndef BOOST_TEST_TREE_VISITOR_HPP_100211GER
0016 #define BOOST_TEST_TREE_VISITOR_HPP_100211GER
0017 
0018 // Boost.Test
0019 #include <boost/test/detail/config.hpp>
0020 
0021 #include <boost/test/tree/test_unit.hpp>
0022 
0023 #include <boost/test/detail/suppress_warnings.hpp>
0024 
0025 //____________________________________________________________________________//
0026 
0027 namespace boost {
0028 namespace unit_test {
0029 
0030 // ************************************************************************** //
0031 // **************               test_tree_visitor              ************** //
0032 // ************************************************************************** //
0033 
0034 class BOOST_TEST_DECL test_tree_visitor {
0035 public:
0036     // test tree visitor interface
0037     virtual bool    visit( test_unit const& )               { return true; }
0038     virtual void    visit( test_case const& tc )            { visit( (test_unit const&)tc ); }
0039     virtual bool    test_suite_start( test_suite const& ts ){ return visit( (test_unit const&)ts ); }
0040     virtual void    test_suite_finish( test_suite const& )  {}
0041 
0042 protected:
0043     BOOST_TEST_PROTECTED_VIRTUAL ~test_tree_visitor() {}
0044 };
0045 
0046 } // namespace unit_test
0047 } // namespace boost
0048 
0049 #include <boost/test/detail/enable_warnings.hpp>
0050 
0051 #endif // BOOST_TEST_TREE_VISITOR_HPP_100211GER
0052