#include "boost/test/unit_test.hpp"
#include "art/Framework/Art/detail/event_start.h"
#include "canvas/Utilities/Exception.h"
#include <string_view>
Go to the source code of this file.
#define BOOST_TEST_MODULE (event start test) |
#define VERIFY_EXCEPTION_WITH_MSG |
( |
|
spec | ) |
|
Value: return invalid_event_id(
e, spec); \
})
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition at line 67 of file event_start_t.cc.
BOOST_AUTO_TEST_CASE |
( |
well_formed |
| ) |
|
Definition at line 24 of file event_start_t.cc.
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
static constexpr double sr
BOOST_AUTO_TEST_CASE |
( |
well_formed_first_values |
| ) |
|
Definition at line 32 of file event_start_t.cc.
40 BOOST_TEST(
r == r_first);
41 BOOST_TEST(sr == sr_first);
42 BOOST_TEST(
e == e_first);
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
static constexpr double sr
std::string to_string(ModuleType const mt)
BOOST_AUTO_TEST_CASE |
( |
well_formed_max_valid_values |
| ) |
|
Definition at line 45 of file event_start_t.cc.
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);
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
static constexpr double sr
std::string to_string(ModuleType const mt)
BOOST_AUTO_TEST_CASE |
( |
leading_and_trailing_spaces_allowed |
| ) |
|
Definition at line 59 of file event_start_t.cc.
std::tuple< RunNumber_t, SubRunNumber_t, EventNumber_t > event_start(std::string const &str_num)
static constexpr double sr
BOOST_AUTO_TEST_CASE |
( |
out_of_range_run |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
out_of_range_subrun |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
out_of_range_event |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
wrong_number_of_colons |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
bad_fields |
| ) |
|