1 #define BOOST_TEST_MODULE (event start test) 2 #include "boost/test/unit_test.hpp" 14 "' is not a valid EventID"};
15 std::string_view
const msg{e.what()};
16 return msg.find(
expected) != std::string_view::npos;
22 BOOST_AUTO_TEST_SUITE(event_start_test)
40 BOOST_TEST(
r == r_first);
41 BOOST_TEST(sr == sr_first);
42 BOOST_TEST(
e == e_first);
51 auto const [
r,
sr,
e] =
54 BOOST_TEST(
r == r_max_valid);
55 BOOST_TEST(sr == sr_max_valid);
56 BOOST_TEST(
e == e_max_valid);
67 #define VERIFY_EXCEPTION_WITH_MSG(spec) \ 68 BOOST_CHECK_EXCEPTION(event_start(spec), art::Exception, [](auto const& e) { \ 69 return invalid_event_id(e, spec); \ 105 BOOST_AUTO_TEST_SUITE_END()
107 #undef VERIFY_EXCEPTION_WITH_MSG
void msg(const char *fmt,...)
#define VERIFY_EXCEPTION_WITH_MSG(spec)
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
static constexpr double sr
std::string to_string(ModuleType const mt)
BOOST_AUTO_TEST_CASE(well_formed)