boost_test_print_pset.h
Go to the documentation of this file.
1 #ifndef fhiclcpp_test_boost_test_print_pset_h
2 #define fhiclcpp_test_boost_test_print_pset_h
3 
4 // ==================================================================
5 // The function here is provided so that Boost knows how to form a
6 // printout message should a test (e.g. BOOST_TEST(ps1 == ps2)) fail.
7 // ==================================================================
8 
10 
11 #include <ostream>
12 
13 namespace fhicl {
14  inline std::ostream&
15  boost_test_print_type(std::ostream& os, ParameterSet const& pset)
16  {
17  return os << pset.to_indented_string();
18  }
19 }
20 
21 #endif /* fhiclcpp_test_boost_test_print_pset_h */
22 
23 // Local Variables:
24 // mode: c++
25 // End:
std::ostream & boost_test_print_type(std::ostream &os, ParameterSet const &pset)
std::string to_indented_string() const