183 auto provPack1 = lar::providersFrom<MyService>();
184 BOOST_TEST(provPack1.get<
MyProvider>() == &prov);
185 BOOST_CHECK_EXCEPTION(lar::providersFrom<MyOtherService>(),
art::Exception,
189 BOOST_CHECK_EXCEPTION(
190 (lar::providersFrom<MyService, MyOtherService>()),
art::Exception,
200 = std::make_unique<YetAnotherService>(&yaprov);
203 = lar::providersFrom<MyService, MyOtherService, YetAnotherService>();
206 BOOST_TEST(lar::providerFrom<MyService>() == &prov);
207 BOOST_TEST(lar::providerFrom<MyOtherService>() == &oprov);
208 BOOST_TEST(lar::providerFrom<YetAnotherService>() == &yaprov);
std::unique_ptr< MyService > myServicePtr
std::unique_ptr< MyOtherService > myOtherServicePtr
std::unique_ptr< YetAnotherService > yetAnotherServicePtr
ProviderPack< Providers... > makeProviderPack(Providers const *...providers)
Function to create a ProviderPack from the function arguments.
GlobalServicesClass GlobalServices
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception