#include "boost/test/unit_test.hpp"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/types/Name.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Table.h"
#include "fhiclcpp/types/Tuple.h"
#include <string>
Go to the source code of this file.
BOOST_AUTO_TEST_CASE |
( |
GoodTuple |
| ) |
|
Definition at line 35 of file nestedValidation_01_t.cc.
37 string const good{
"pars: [X, [Y, Z]]"s};
38 std::vector<std::string>
const ref{
"Y"s,
"Z"s};
40 auto const& pars = validatedConfig().pars();
fhicl::Table< Config > validateConfig(std::string const &configStr)
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
BadTuple1 |
| ) |
|
Definition at line 45 of file nestedValidation_01_t.cc.
47 string const bad{
"pars: [ X ]"s};
fhicl::Table< Config > validateConfig(std::string const &configStr)
BOOST_AUTO_TEST_CASE |
( |
BadTuple2 |
| ) |
|
Definition at line 51 of file nestedValidation_01_t.cc.
53 string const bad{
"pars: [ X, 1 ]"s};
fhicl::Table< Config > validateConfig(std::string const &configStr)
cet::coded_exception< error, detail::translate > exception