Macros | Functions
ScheduleID_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "art/Utilities/ScheduleID.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (ScheduleID_t)
 

Functions

 BOOST_AUTO_TEST_CASE (construct)
 
 BOOST_AUTO_TEST_CASE (compare)
 
 BOOST_AUTO_TEST_CASE (id)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (ScheduleID_t)

Definition at line 1 of file ScheduleID_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( construct  )

Definition at line 8 of file ScheduleID_t.cc.

9 {
10  BOOST_CHECK_NO_THROW(art::ScheduleID(0));
11  BOOST_CHECK_NO_THROW(art::ScheduleID(1));
12  BOOST_TEST(!art::ScheduleID().isValid());
13  BOOST_TEST(art::ScheduleID::first().isValid());
14  BOOST_TEST(art::ScheduleID::last().isValid());
15 }
static constexpr ScheduleID first()
Definition: ScheduleID.h:50
static constexpr ScheduleID last()
Definition: ScheduleID.h:55
BOOST_AUTO_TEST_CASE ( compare  )

Definition at line 17 of file ScheduleID_t.cc.

18 {
19  BOOST_TEST(art::ScheduleID(57) == art::ScheduleID(57));
20  BOOST_TEST(art::ScheduleID(57) != art::ScheduleID(58));
22  BOOST_TEST(!(art::ScheduleID::last() < art::ScheduleID::first()));
25  BOOST_TEST(!(art::ScheduleID::last() <= art::ScheduleID::first()));
27  BOOST_TEST(!(art::ScheduleID::first() > art::ScheduleID::last()));
30  BOOST_TEST(!(art::ScheduleID::first() >= art::ScheduleID::last()));
31 }
static constexpr ScheduleID first()
Definition: ScheduleID.h:50
static constexpr ScheduleID last()
Definition: ScheduleID.h:55
BOOST_AUTO_TEST_CASE ( id  )

Definition at line 33 of file ScheduleID_t.cc.

34 {
35  art::ScheduleID sID{61};
36  BOOST_TEST(sID.id() == 61);
37 }