Selector_t.cc
Go to the documentation of this file.
1 // vim: set sw=2 expandtab :
2 #define BOOST_TEST_MODULE (Selector_t)
3 #include "boost/test/unit_test.hpp"
4 
6 
7 using namespace art;
8 
9 BOOST_AUTO_TEST_SUITE(Selector_t)
10 
11 BOOST_AUTO_TEST_CASE(composed_selector_with_assignment)
12 {
13  ProductInstanceNameSelector const s1("instance");
14  ModuleLabelSelector const s2("moduleLabel");
15  Selector s3{s1};
16  s3 = Selector{s3 && s2};
17 }
18 
19 BOOST_AUTO_TEST_CASE(composed_selector_with_not)
20 {
21  ProductInstanceNameSelector const s1{"instance"};
22  ModuleLabelSelector const s2{"moduleLabel"};
23  Selector const s3 [[maybe_unused]]{s1 && !s2};
24 }
25 
26 BOOST_AUTO_TEST_CASE(composed_selector_with_not_rvalue)
27 {
28  Selector const selector
29  [[maybe_unused]]{ProductInstanceNameSelector{"instance"} &&
30  !ModuleLabelSelector{"moduleLabel"}};
31 }
32 
33 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(composed_selector_with_assignment)
Definition: Selector_t.cc:11