Macros | Functions
fhicl_key_t.cc File Reference
#include "art/Framework/Art/detail/fhicl_key.h"
#include "boost/test/unit_test.hpp"
#include <string>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (fhicl_key test)
 

Functions

 BOOST_AUTO_TEST_CASE (one_arg)
 
 BOOST_AUTO_TEST_CASE (multiple_args)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (fhicl_key test)

Definition at line 1 of file fhicl_key_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( one_arg  )

Definition at line 12 of file fhicl_key_t.cc.

13 {
14  BOOST_TEST(fhicl_key("a") == "a"s);
15  BOOST_TEST(fhicl_key("b"s) == "b"s);
16 }
std::enable_if_t< std::is_convertible_v< T, std::string >, std::string > fhicl_key(T const &name)
Definition: fhicl_key.h:12
static QCString * s
Definition: config.cpp:1042
BOOST_AUTO_TEST_CASE ( multiple_args  )

Definition at line 18 of file fhicl_key_t.cc.

19 {
20  BOOST_TEST(fhicl_key("a", "b") == "a.b"s);
21  BOOST_TEST(fhicl_key("a", "b", "c") == "a.b.c"s);
22  auto const& stem = fhicl_key("a", "b");
23  BOOST_TEST(fhicl_key(stem, "c") == "a.b.c"s);
24  BOOST_TEST(fhicl_key("", "a") == "a"s);
25 }
std::enable_if_t< std::is_convertible_v< T, std::string >, std::string > fhicl_key(T const &name)
Definition: fhicl_key.h:12
static QCString * s
Definition: config.cpp:1042