1 #include "boost/test/unit_test.hpp" 16 using Parameters = Table<Config>;
21 std::vector<std::string>
const orderedPaths_;
22 bool const expectedA_;
23 bool const expectedB_;
28 CheckTriggerBits::CheckTriggerBits(Parameters
const&
p,
31 , orderedPaths_{
p().ordered_paths()}
32 , expectedA_{
p().expected_a()}
33 , expectedB_{
p().expected_b()}
34 , token_{consumes<art::TriggerResults>(
"TriggerResults")}
36 async<art::InEvent>();
38 auto const& trigger_paths = triggerNames_->getTrigPaths();
39 auto const num_paths =
size(trigger_paths);
40 BOOST_TEST(num_paths ==
size(orderedPaths_));
42 for (std::size_t i{}; i != num_paths; ++i) {
43 BOOST_TEST(trigger_paths[i] == orderedPaths_[i]);
50 auto const results = triggerNames_->pathResults(e);
51 BOOST_TEST(
size(results) == 2ull);
52 BOOST_TEST(results.at(
"a").accept() == expectedA_);
53 BOOST_TEST(results.at(
"b").accept() == expectedB_);
def analyze(root, level, gtrees, gbranches, doprint)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
typename config_impl< T >::type Config
#define DEFINE_ART_MODULE(klass)