Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
test
types
optionalAtom_t.cc
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// test optional atom
4
//
5
// ======================================================================
6
7
#define BOOST_TEST_MODULE (optionalAtom test)
8
9
#include "boost/test/unit_test.hpp"
10
11
#include "
fhiclcpp/types/OptionalAtom.h
"
12
#include "fhiclcpp/types/detail/ParameterSchemaRegistry.h"
13
14
#include <iostream>
15
#include <string>
16
#include <vector>
17
18
using namespace
fhicl
;
19
using namespace
fhicl::detail
;
20
using namespace
std
;
21
22
BOOST_AUTO_TEST_SUITE(optionalAtom_test)
23
24
// [1] Atom<T>
25
BOOST_AUTO_TEST_CASE
(optionalAtom_t_01)
26
{
27
ParameterSet
p1;
28
ParameterSet
p2;
29
p2.
put
(
"optAtom"
, 1);
30
OptionalAtom<int>
test
{
Name
(
"optAtom"
)};
31
}
32
33
BOOST_AUTO_TEST_SUITE_END()
test
Definition:
PandoraAnalysis_module.cc:49
Name
ChannelGroupService::Name Name
Definition:
FixedChannelGroupService_service.cc:19
std
STL namespace.
OptionalAtom.h
fhicl
Definition:
InputSourceFactory.h:7
fhicl::detail
Definition:
coding.h:43
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(optionalAtom_t_01)
Definition:
optionalAtom_t.cc:25
fhicl::OptionalAtom< int >
fhicl::ParameterSet::put
void put(std::string const &key)
Definition:
ParameterSet.cc:266
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11