1 #define BOOST_TEST_MODULE (ProductRegistryHelper_t) 2 #include "boost/test/unit_test.hpp" 22 return e.explain_self().find(msg_) != std::string::npos;
35 BOOST_AUTO_TEST_SUITE(ProductRegistryHelper_t)
41 BOOST_CHECK_EXCEPTION((prh.reconstitutes<
int,
InEvent>(
"label",
"instance")),
43 matches{
"'produces' should have been called instead"});
49 prh.reconstitutes<
int,
InEvent>(
"label",
"instance");
50 BOOST_CHECK_EXCEPTION(
53 matches{
"'reconstitutes' should have been called instead"});
61 BOOST_CHECK_NO_THROW(prh.fillDescriptions(
md));
69 BOOST_CHECK_EXCEPTION(
70 prh.fillDescriptions(
md),
72 matches{
"That friendly name has already been registered for this module."});
75 BOOST_AUTO_TEST_SUITE_END()
void msg(const char *fmt,...)
BOOST_AUTO_TEST_CASE(produces)
ParameterSetID id() const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception