85 for (std::size_t i{0}; i != 5; ++i) {
87 srHandler->update(
e.id,
e.lastInSubRun);
88 rHandler->update(
e.id,
e.lastInSubRun);
90 srHandler->flushRanges();
94 BOOST_TEST(srHandler->seenRanges() == subRunRS);
96 srHandler = make_unique<OpenRangeSetHandler>(1);
101 srHandler->maybeSplitRange();
102 rHandler->maybeSplitRange();
104 vector<EventRange> runRanges{
EventRange{0, 1, 4}};
105 vector<EventRange> subRunRanges{
EventRange{1, 1, 3}};
107 RangeSet const subRunRS{1, subRunRanges};
109 BOOST_TEST(srHandler->seenRanges() == subRunRS);
110 BOOST_TEST(rHandler->seenRanges() == runRS);
118 srHandler->update(
e.id,
e.lastInSubRun);
119 rHandler->update(
e.id,
e.lastInSubRun);
120 srHandler->flushRanges();
124 BOOST_TEST(srHandler->seenRanges() == subRunRS);
126 srHandler = make_unique<OpenRangeSetHandler>(1);
128 for (std::size_t i{6}; i !=
events.size(); ++i) {
130 srHandler->update(
e.id,
e.lastInSubRun);
131 rHandler->update(
e.id,
e.lastInSubRun);
135 srHandler->flushRanges();
136 rHandler->flushRanges();
138 vector<EventRange> runRanges{
EventRange{1, 3, 4}};
139 vector<EventRange> subRunRanges{
EventRange{2, 1, 4}};
141 RangeSet const subRunRS{1, subRunRanges};
143 BOOST_TEST(srHandler->seenRanges() == subRunRS);
144 BOOST_TEST(rHandler->seenRanges() == runRS);
std::string concatenate(H const &h, T const &...t)
void emplace_range(ARGS &&...)