Macros | Functions
delegatedParameter_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "FixtureBase.h"
#include "fhiclcpp/types/DelegatedParameter.h"
#include "fhiclcpp/types/OptionalDelegatedParameter.h"
#include <string>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (delegatedParameter test)
 

Functions

 BOOST_AUTO_TEST_CASE (delegation_check)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (delegatedParameter test)

Definition at line 1 of file delegatedParameter_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( delegation_check  )

Definition at line 55 of file delegatedParameter_t.cc.

56 {
57  receive_PSet(config().dt.get<ParameterSet>());
58  receive_vector(config().ds.get<std::vector<int>>());
59  receive_int(config().nested().da.get<int>());
60  std::string maybe_string;
61  config().nested().oda.get_if_present(maybe_string);
62  BOOST_TEST("Hello, Billy"s == maybe_string);
63 }
std::string string
Definition: nybbler.cc:12
static Config * config
Definition: config.cpp:1054
static QCString * s
Definition: config.cpp:1042