1 #define BOOST_TEST_MODULE (Nested Validation) 3 #include "boost/test/unit_test.hpp" 14 using namespace fhicl;
16 using namespace string_literals;
21 Val_t pars{
Name(
"pars")};
29 validatedConfig.validate(
ps);
30 return validatedConfig;
34 BOOST_AUTO_TEST_SUITE(Nested_Validation)
38 string const good{
"pars: [[A, [B]], [X, [Y, Z]]]"s};
39 std::vector<std::string>
const ref1{
"B"s};
40 std::vector<std::string>
const ref2{
"Y"s,
"Z"s};
42 auto const& pars = validatedConfig().pars();
52 string const bad{
"pars: [[A], [X, [Y, Z]]]"s};
58 string const bad{
"pars: [[A]]"s};
64 string const bad{
"pars: [[A, 7]]"s};
68 BOOST_AUTO_TEST_SUITE_END()
static ParameterSet make(intermediate_table const &tbl)
fhicl::Table< Config > validateConfig(std::string const &configStr)
ChannelGroupService::Name Name
BOOST_AUTO_TEST_CASE(GoodTuple1)
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
typename config_impl< T >::type Config
static constexpr double ps
cet::coded_exception< error, detail::translate > exception