vdj_pipe
pipeline for processing DNA sequence data
exception_fixture.hpp
Go to the documentation of this file.
1 
6 #ifndef EXCEPTION_FIXTURE_HPP_
7 #define EXCEPTION_FIXTURE_HPP_
8 #include "boost/test/unit_test_monitor.hpp"
9 #include "boost/exception/diagnostic_information.hpp"
10 
11 namespace vdj_pipe{ namespace test{ namespace detail{
12 
13 void translate(boost::exception const& e) {
14  BOOST_FAIL(boost::diagnostic_information(e));
15 }
16 }//namespace detail
17 
22  ::boost::unit_test::unit_test_monitor.
23  register_exception_translator<boost::exception>(&detail::translate);
24  }
25 };
26 
27 BOOST_GLOBAL_FIXTURE( Exception_fixture )
28 
29 }//namespace test
30 }//namespace vdj_pipe
31 #endif /* EXCEPTION_FIXTURE_HPP_ */
void translate(boost::exception const &e)
Definition: exception_fixture.hpp:13
Exception_fixture()
Definition: exception_fixture.hpp:21
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
Definition: exception_fixture.hpp:20