Macros | Functions
Selector_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "art/Framework/Principal/Selector.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (Selector_t)
 

Functions

 BOOST_AUTO_TEST_CASE (composed_selector_with_assignment)
 
 BOOST_AUTO_TEST_CASE (composed_selector_with_not)
 
 BOOST_AUTO_TEST_CASE (composed_selector_with_not_rvalue)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (Selector_t)

Definition at line 2 of file Selector_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( composed_selector_with_assignment  )

Definition at line 11 of file Selector_t.cc.

12 {
13  ProductInstanceNameSelector const s1("instance");
14  ModuleLabelSelector const s2("moduleLabel");
15  Selector s3{s1};
16  s3 = Selector{s3 && s2};
17 }
BOOST_AUTO_TEST_CASE ( composed_selector_with_not  )

Definition at line 19 of file Selector_t.cc.

20 {
21  ProductInstanceNameSelector const s1{"instance"};
22  ModuleLabelSelector const s2{"moduleLabel"};
23  Selector const s3 [[maybe_unused]]{s1 && !s2};
24 }
BOOST_AUTO_TEST_CASE ( composed_selector_with_not_rvalue  )

Definition at line 26 of file Selector_t.cc.

27 {
28  Selector const selector
29  [[maybe_unused]]{ProductInstanceNameSelector{"instance"} &&
30  !ModuleLabelSelector{"moduleLabel"}};
31 }