Go to the source code of this file.
#define BOOST_TEST_MODULE (prune_config test) |
BOOST_AUTO_TEST_CASE |
( |
empty_config |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
duplicate_label |
| ) |
|
Definition at line 41 of file prune_config_t.cc.
46 " p: { module_type: PMTestAnalyzer } " 49 " p: { module_type: PMTestFilter } " 54 "---- Configuration BEGIN\n" 55 " An error occurred while processing module configurations.\n" 56 " Module label 'p' has been used in 'physics.analyzers' and " 57 "'physics.filters'.\n" 58 " Module labels must be unique across an art process.\n" 59 "---- Configuration END\n"};
60 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
inhomogeneous_path |
| ) |
|
Definition at line 63 of file prune_config_t.cc.
68 " a: { module_type: PMTestAnalyzer } " 71 " f: { module_type: PMTestFilter } " 74 " p: { module_type: PMTestProducer } " 79 "---- Configuration BEGIN\n" 80 " An error occurred while processing a path configuration.\n" 81 " The following modules specified in path p1 are observers when all\n" 82 " other modules are modifiers:\n" 84 "---- Configuration END\n"};
85 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
nonexistent_path_1 |
| ) |
|
Definition at line 88 of file prune_config_t.cc.
92 "---- Configuration BEGIN\n" 93 " The following error occurred while processing path configurations:\n" 94 " Unknown path x1 has been specified in 'trigger_paths'.\n" 95 "---- Configuration END\n"};
96 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
nonexistent_path_2 |
| ) |
|
Definition at line 99 of file prune_config_t.cc.
103 "---- Configuration BEGIN\n" 104 " The following error occurred while processing path configurations:\n" 105 " Unknown path x1 has been specified in 'end_paths'.\n" 106 " Unknown path d6 has been specified in 'end_paths'.\n" 107 "---- Configuration END\n"};
108 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
unconfigured_label |
| ) |
|
Definition at line 111 of file prune_config_t.cc.
115 " p1: [ \"-f\", p, a ] " 118 "---- Configuration BEGIN\n" 119 " The following error occurred while processing a path " 121 " Entry with name f in path p1 does not have a module configuration.\n" 122 "---- Configuration END\n"};
123 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
illegal_label |
| ) |
|
Definition at line 126 of file prune_config_t.cc.
133 "---- Configuration BEGIN\n" 134 " There was an error parsing the entry \"!f-g\"in a FHiCL sequence.\n" 135 " The '!' or '-' character may appear as only the first character in the " 137 "---- Configuration END\n"};
138 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
illegal_action_for_non_filter |
| ) |
|
Definition at line 141 of file prune_config_t.cc.
145 " producers: { p: {} }" 148 std::string const err_msg{
"---- Configuration BEGIN\n" 149 " The following error occurred while " 150 "processing a path configuration:\n" 151 " Entry with name p in path p1 is a producer and " 152 "cannot have a '!' or '-' prefix.\n" 153 "---- Configuration END\n"};
154 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
unconfigured_label_with_trigger_paths |
| ) |
|
Definition at line 157 of file prune_config_t.cc.
162 " trigger_paths: [ p1 ] " 165 "---- Configuration BEGIN\n" 166 " The following error occurred while processing a path " 168 " Entry with name f in path p1 does not have a module configuration.\n" 169 "---- Configuration END\n"};
170 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
misspecified_end_path |
| ) |
|
Definition at line 173 of file prune_config_t.cc.
177 "physics.analyzers.a1: {\n" 178 " module_type: DummyAnalyzer\n" 181 "physics.trigger_paths: [e1]\n"};
183 "---- Configuration BEGIN\n" 184 " The following error occurred while processing a path " 186 " The 'trigger_paths' override parameter contains the path e1, which has " 188 " analyzer with the name a1.\n" 190 " Path e1 should instead be included as part of the 'end_paths' " 192 " Contact artists@fnal.gov for guidance.\n" 193 "---- Configuration END\n"};
194 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
misspecified_trigger_path |
| ) |
|
Definition at line 197 of file prune_config_t.cc.
201 "physics.producers.d1: {\n" 202 " module_type: DummyProducer\n" 205 "physics.end_paths: [p1]\n"};
207 "---- Configuration BEGIN\n" 208 " The following error occurred while processing a path " 210 " The 'end_paths' override parameter contains the path p1, which has a\n" 211 " producer with the name d1.\n" 213 " Path p1 should instead be included as part of the 'trigger_paths' " 215 " Contact artists@fnal.gov for guidance.\n" 216 "---- Configuration END\n"};
217 check_exception(
config, err_msg);
BOOST_AUTO_TEST_CASE |
( |
unsupported_physics_parameters |
| ) |
|
Definition at line 220 of file prune_config_t.cc.
231 " random : table } }"};
233 "---- Configuration BEGIN\n" 235 " You have specified the following unsupported parameters in the\n" 236 " \"physics\" block of your configuration:\n" 238 " \"physics.check\" (table)\n" 239 " \"physics.test\" (atom)\n" 241 " Supported parameters include the following tables:\n" 242 " \"physics.producers\"\n" 243 " \"physics.filters\"\n" 244 " \"physics.analyzers\"\n" 245 " and sequences. Atomic configuration parameters are not allowed.\n" 247 "---- Configuration END\n"};
248 check_exception(
config, err_msg);