All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
TriggerGateData_test.cc File Reference

Unit test for TriggerGateData.h header. More...

#include "sbnobj/ICARUS/PMT/Trigger/Data/TriggerGateData.h"
#include "lardataalg/DetectorInfo/DetectorTimingTypes.h"
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   ( TriggerGateData_test )
 

Functions

template<typename Tick , typename TickInterval = util::quantities::concepts::interval_of<Tick>>
void instantiate ()
 
 BOOST_AUTO_TEST_CASE (opticaltick_testcase)
 

Detailed Description

Unit test for TriggerGateData.h header.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
May 29, 2019
See Also
sbnobj/ICARUS/PMT/Trigger/Data/TriggerGateData.h

The main purpose of this test is to make sure TriggerGateData code is compiled, since it is just a header.

Definition in file TriggerGateData_test.cc.

Macro Definition Documentation

#define BOOST_TEST_MODULE   ( TriggerGateData_test )

Definition at line 19 of file TriggerGateData_test.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( opticaltick_testcase  )

Definition at line 44 of file TriggerGateData_test.cc.

44  {
45 
46  instantiate<detinfo::timescales::optical_tick>();
47 
48 } // BOOST_AUTO_TEST_CASE(opticaltick_testcase)
template<typename Tick , typename TickInterval = util::quantities::concepts::interval_of<Tick>>
void instantiate ( )

Definition at line 31 of file TriggerGateData_test.cc.

31  {
32 
34 
35  BOOST_TEST_MESSAGE("Created: " << gate);
36 
37  BOOST_CHECK(gate.alwaysClosed());
38 
39 } // instantiate()
Logical multi-level gate.
bool alwaysClosed() const
Returns whether this gate never opened.