LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
boost_unit_test_base.h
Go to the documentation of this file.
1 
21 #ifndef TEST_BOOST_UNIT_TEST_BASE_H
22 #define TEST_BOOST_UNIT_TEST_BASE_H
23 
24 // LArSoft libraries
26 
27 // Boost libraries
28 #include <boost/test/unit_test.hpp>
29 
30 // C/C++ standard libraries
31 #include <string>
32 
33 namespace testing {
34 
50  template <typename CONFIGURATIONCLASS>
51  struct BoostCommandLineConfiguration : public CONFIGURATIONCLASS {
52 
53  using Base_t = CONFIGURATIONCLASS;
54 
57 
60 
61  protected:
64  {
65  Base_t::ParseCommandLine(boost::unit_test::framework::master_test_suite().argc,
66  boost::unit_test::framework::master_test_suite().argv);
67  }
68 
69  }; // class BoostCommandLineConfiguration<>
70 
71 } // namespace testing
72 
73 #endif // TEST_BOOST_UNIT_TEST_BASE_H
LArSoft test utilities.
BoostCommandLineConfiguration()
Default constructor; this is what is used in Boost unit test.
Class holding a configuration for a Boost test fixture.
BoostCommandLineConfiguration(std::string name)
Constructor; accepts the name as parameter.
void ParseCommandLineFromBoost()
Parses arguments as delivered by Boost.
Base class for unit tests using FHiCL configuration.