#include "boost/test/unit_test.hpp"
#include "KeyMap.h"
#include "fhiclcpp/types/Atom.h"
#include "fhiclcpp/types/Sequence.h"
#include "fhiclcpp/types/Tuple.h"
#include <string>
Go to the source code of this file.
#define BOOST_TEST_MODULE (keymap test) |
BOOST_AUTO_TEST_CASE |
( |
one_atom_t |
| ) |
|
Definition at line 29 of file keymap_defaults_t.cc.
37 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
one_sequence_t |
| ) |
|
Definition at line 41 of file keymap_defaults_t.cc.
48 auto ref = {
"sequence",
"sequence[0]",
"sequence[1]",
"sequence[2]"};
49 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
one_sequence_2_t |
| ) |
|
Definition at line 53 of file keymap_defaults_t.cc.
60 auto ref = {
"sequence",
"sequence[0]",
"sequence[1]"};
61 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
one_tuple_t |
| ) |
|
Definition at line 65 of file keymap_defaults_t.cc.
72 auto ref = {
"tuple",
"tuple[0]",
"tuple[1]",
"tuple[2]"};
73 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
seq_in_tuple_t |
| ) |
|
Definition at line 77 of file keymap_defaults_t.cc.
81 {{1, 3, 5}, 4.6,
true}};
92 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
bounded_seq_in_tuple_t |
| ) |
|
Definition at line 96 of file keymap_defaults_t.cc.
100 {{9, 15}, 0.2,
false}};
105 "tuple",
"tuple[0]",
"tuple[0][0]",
"tuple[0][1]",
"tuple[1]",
"tuple[2]"};
106 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
tuple_in_tuple_t |
| ) |
|
Definition at line 110 of file keymap_defaults_t.cc.
114 {{4, 3.7f}, 8.1,
true}};
119 "tuple",
"tuple[0]",
"tuple[0][0]",
"tuple[0][1]",
"tuple[1]",
"tuple[2]"};
120 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
tuple_in_seq_t |
| ) |
|
Definition at line 124 of file keymap_defaults_t.cc.
128 {{2, 5.4f}, {4, 104.5f}, {8, 15.3f}}};
132 auto ref = {
"seqtuple",
142 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
tuple_in_seq_2_t |
| ) |
|
Definition at line 146 of file keymap_defaults_t.cc.
153 auto ref = {
"seqtuple",
160 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
seq_in_seq_t |
| ) |
|
Definition at line 164 of file keymap_defaults_t.cc.
171 auto ref = {
"seqseq",
178 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
seq_2_in_seq_t |
| ) |
|
Definition at line 182 of file keymap_defaults_t.cc.
189 auto ref = {
"seqseq",
"seqseq[0]",
"seqseq[0][0]",
"seqseq[0][1]"};
190 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
seq_in_seq_2_t |
| ) |
|
Definition at line 194 of file keymap_defaults_t.cc.
201 auto ref = {
"seqseq",
209 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const
BOOST_AUTO_TEST_CASE |
( |
seq_2_in_seq_2_t |
| ) |
|
Definition at line 213 of file keymap_defaults_t.cc.
220 auto ref = {
"seqseq",
227 BOOST_TEST(map == ref, boost::test_tools::per_element{});
ChannelGroupService::Name Name
static constexpr double km
void walk_over(tt::maybe_const_t< ParameterBase, C > &)
auto const & result() const