11 using namespace fhicl;
18 Name{
"expectedValues"},
20 "The 'expectedValues' parameter lists the values that\n" 21 "are intended to be present whenever a getManyByType call is made."}};
28 std::vector<int> expectedValues_;
32 :
art::SharedProducer{p}, expectedValues_{
p().expectedValues()}
34 std::sort(
begin(expectedValues_),
end(expectedValues_));
35 async<art::InEvent>();
36 consumesMany<arttest::IntProduct>();
42 std::vector<art::Handle<arttest::IntProduct>> products;
44 std::set<int> presentValues;
45 for (
auto const&
h : products) {
46 presentValues.insert(
h->value);
48 assert(presentValues.size() == expectedValues_.size());
49 auto const sameValues = std::equal(
50 cbegin(presentValues), cend(presentValues), cbegin(expectedValues_));
#define DEFINE_ART_MODULE(klass)
auto begin(Data< Value > const &data)
void getManyByType(std::vector< Handle< PROD >> &results) const
h
training ###############################