All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TriggerGateData_test.cc
Go to the documentation of this file.
1 /**
2  * @file test/PMT/Trigger/Data/TriggerGateData_test.cc
3  * @brief Unit test for `TriggerGateData.h` header
4  * @author Gianluca Petrillo (petrillo@slac.stanford.edu)
5  * @date May 29, 2019
6  * @see `sbnobj/ICARUS/PMT/Trigger/Data/TriggerGateData.h`
7  *
8  * The main purpose of this test is to make sure `TriggerGateData` code is
9  * compiled, since it is just a header.
10  */
11 
12 // ICARUS libraries
14 
15 // LArSoft libraries
17 
18 // Boost libraries
19 #define BOOST_TEST_MODULE ( TriggerGateData_test )
20 #include <boost/test/unit_test.hpp>
21 
22 
23 // -----------------------------------------------------------------------------
24 // --- implementation detail tests
25 // -----------------------------------------------------------------------------
26 
27 template<
28  typename Tick,
29  typename TickInterval = util::quantities::concepts::interval_of<Tick>
30  >
31 void instantiate() {
32 
34 
35  BOOST_TEST_MESSAGE("Created: " << gate);
36 
37  BOOST_CHECK(gate.alwaysClosed());
38 
39 } // instantiate()
40 
41 // -----------------------------------------------------------------------------
42 // BEGIN Test cases -----------------------------------------------------------
43 // -----------------------------------------------------------------------------
44 BOOST_AUTO_TEST_CASE(opticaltick_testcase) {
45 
46  instantiate<detinfo::timescales::optical_tick>();
47 
48 } // BOOST_AUTO_TEST_CASE(opticaltick_testcase)
49 
50 
51 // -----------------------------------------------------------------------------
52 // END Test cases -------------------------------------------------------------
53 // -----------------------------------------------------------------------------
BOOST_AUTO_TEST_CASE(AllTests)
typename T::interval_t interval_of
Type of interval contained in specified type T.
Definition: intervals.h:94
void instantiate()
A logical multilevel gate for triggering.
Data types for detinfo::DetectorTimings.
Logical multi-level gate.
bool alwaysClosed() const
Returns whether this gate never opened.