2 #define BOOST_TEST_MODULE (PathManager Test) 3 #include "boost/test/unit_test.hpp" 31 vector<tuple<string, errors::ErrorCodes, string>> test_sets;
34 test_sets.emplace_back(
"", static_cast<errors::ErrorCodes>(0),
"");
37 test_sets.emplace_back(
"process_name: \"test\" " 40 " p: { module_type: PMTestProducer } " 44 static_cast<errors::ErrorCodes>(0),
49 test_sets.emplace_back(
"process_name: \"test\" " 52 " p: { module_type: PMTestProducer }" 55 " a: { module_type: DummyAnalyzer }" 62 static_cast<errors::ErrorCodes>(0),
66 test_sets.emplace_back(
"process_name: \"test\" " 69 " p: { module_type: PMTestFilter } " 74 "---- Configuration BEGIN\n" 75 " The following were encountered while processing " 76 "the module configurations:\n" 77 " ERROR: Module with label p of type PMTestFilter " 78 "is configured as a producer but defined in code as a " 80 "---- Configuration END\n");
82 for (
auto const& [config_string, error_code, error_msg] : test_sets) {
84 auto const enabled_modules =
89 ps, preg, productsToProduce, atable, areg, enabled_modules);
90 assert(error_code == 0);
93 if ((e.categoryCode() != error_code) || (e.what() != error_msg)) {
100 BOOST_AUTO_TEST_SUITE_END()
static ParameterSet make(intermediate_table const &tbl)
std::vector< BranchDescription > ProductDescriptions
EnabledModules prune_config_if_enabled(bool prune_config, bool report_enabled, fhicl::intermediate_table &config)
static constexpr double ps
BOOST_AUTO_TEST_CASE(Construct)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
ProductDescriptions productsToProduce
intermediate_table parse_document(std::string const &filename, cet::filepath_maker &maker)
UpdateOutputCallbacks preg