#include "boost/test/unit_test.hpp"
#include "canvas/Persistency/Provenance/Timestamp.h"
Go to the source code of this file.
#define BOOST_TEST_MODULE (TimeStamp_t) |
BOOST_AUTO_TEST_CASE |
( |
constructTest |
| ) |
|
Definition at line 10 of file TimeStamp_t.cc.
15 static_assert(
temp.value() ==
t);
17 static_assert(Timestamp::invalidTimestamp() < Timestamp::beginOfTime());
18 static_assert(Timestamp::beginOfTime() < Timestamp::endOfTime());
19 static_assert(Timestamp::endOfTime().
value() + 1 == 0);
21 constexpr
Timestamp db(0xdeadbeefbeefdead);
23 static_assert(db.timeLow() == 0xbeefdead);
24 static_assert(db.timeHigh() == 0xdeadbeef);
25 static_assert(db.value() == 0xdeadbeefbeefdead);
std::uint64_t TimeValue_t
BOOST_AUTO_TEST_CASE |
( |
comparisonTest |
| ) |
|
Definition at line 28 of file TimeStamp_t.cc.
33 static_assert(small < med);
34 static_assert(small <= med);
35 static_assert(!(small == med));
36 static_assert(small != med);
37 static_assert(!(small > med));
38 static_assert(!(small >= med));