Test of geo_types.h types. More...
#include "boost/test/unit_test.hpp"
#include "larcoreobj/SimpleTypesAndConstants/geo_types.h"
#include <type_traits>
Go to the source code of this file.
Macros | |
#define | GEO_TYPES_TEST_SKIP_COMPILATION_ERRORS 1 |
#define | BOOST_TEST_MODULE ( geo_types_test ) |
Functions | |
template<typename T > | |
auto | makeConst (T &var) -> decltype(auto) |
template<typename ID > | |
constexpr bool | assertGeoIDlevel () |
void | TestIDvalidity (geo::CryostatID const &id, bool answer) |
void | TestSetIDvalidity (geo::CryostatID &id) |
template<typename TESTID , typename REFID = TESTID> | |
void | TestCompareSmallerID (TESTID const &id, REFID const &smaller) |
Test comparison operators. More... | |
template<typename TESTID , typename REFID = TESTID> | |
void | TestCompareSameID (TESTID const &id, REFID const &same) |
Test comparison operators. More... | |
template<typename TESTID > | |
void | TestCompareSelfID (TESTID const &id) |
Test comparison operators. More... | |
template<typename TESTID , typename REFID = TESTID> | |
void | TestCompareLargerID (TESTID const &id, REFID const &larger) |
Test comparison operators. More... | |
template<typename TESTID , typename REFID = TESTID> | |
void | TestIDcomparison (TESTID const &id, REFID const &smaller, REFID const &same, REFID const &larger) |
Test comparison operators. More... | |
void | test_CryostatID_defaultConstructor () |
void | test_CryostatID_directConstructor () |
void | test_OpDetID_defaultConstructor () |
void | test_OpDetID_integralConstructor () |
void | test_OpDetID_nestedConstructor () |
void | test_OpDetID_directConstructor () |
void | test_TPCID_defaultConstructor () |
void | test_TPCID_integralConstructor () |
void | test_TPCID_nestedConstructor () |
void | test_TPCID_directConstructor () |
void | test_PlaneID_defaultConstructor () |
void | test_PlaneID_integralConstructor () |
void | test_PlaneID_nestedConstructor () |
void | test_PlaneID_directConstructor () |
void | test_WireID_defaultConstructor () |
void | test_WireID_integralConstructor () |
void | test_WireID_nestedConstructor () |
void | test_WireID_directConstructor () |
BOOST_AUTO_TEST_CASE (CryostatIDtest) | |
BOOST_AUTO_TEST_CASE (OpDetIDtest) | |
BOOST_AUTO_TEST_CASE (TPCIDtest) | |
BOOST_AUTO_TEST_CASE (PlaneIDtest) | |
BOOST_AUTO_TEST_CASE (WireIDtest) | |
#define BOOST_TEST_MODULE ( geo_types_test ) |
Definition at line 24 of file geo_types_test.cc.
#define GEO_TYPES_TEST_SKIP_COMPILATION_ERRORS 1 |
Definition at line 11 of file geo_types_test.cc.
constexpr bool assertGeoIDlevel | ( | ) |
Definition at line 38 of file geo_types_test.cc.
BOOST_AUTO_TEST_CASE | ( | CryostatIDtest | ) |
Definition at line 791 of file geo_types_test.cc.
BOOST_AUTO_TEST_CASE | ( | OpDetIDtest | ) |
Definition at line 799 of file geo_types_test.cc.
BOOST_AUTO_TEST_CASE | ( | TPCIDtest | ) |
Definition at line 809 of file geo_types_test.cc.
BOOST_AUTO_TEST_CASE | ( | PlaneIDtest | ) |
Definition at line 819 of file geo_types_test.cc.
BOOST_AUTO_TEST_CASE | ( | WireIDtest | ) |
Definition at line 829 of file geo_types_test.cc.
auto makeConst | ( | T & | var | ) | -> decltype(auto) |
Definition at line 35 of file geo_types_test.cc.
void test_CryostatID_defaultConstructor | ( | ) |
Definition at line 214 of file geo_types_test.cc.
void test_CryostatID_directConstructor | ( | ) |
Definition at line 236 of file geo_types_test.cc.
void test_OpDetID_defaultConstructor | ( | ) |
Definition at line 279 of file geo_types_test.cc.
void test_OpDetID_directConstructor | ( | ) |
Definition at line 341 of file geo_types_test.cc.
void test_OpDetID_integralConstructor | ( | ) |
Definition at line 295 of file geo_types_test.cc.
void test_OpDetID_nestedConstructor | ( | ) |
Definition at line 315 of file geo_types_test.cc.
void test_PlaneID_defaultConstructor | ( | ) |
Definition at line 503 of file geo_types_test.cc.
void test_PlaneID_directConstructor | ( | ) |
Definition at line 565 of file geo_types_test.cc.
void test_PlaneID_integralConstructor | ( | ) |
Definition at line 519 of file geo_types_test.cc.
void test_PlaneID_nestedConstructor | ( | ) |
Definition at line 539 of file geo_types_test.cc.
void test_TPCID_defaultConstructor | ( | ) |
Definition at line 391 of file geo_types_test.cc.
void test_TPCID_directConstructor | ( | ) |
Definition at line 453 of file geo_types_test.cc.
void test_TPCID_integralConstructor | ( | ) |
Definition at line 407 of file geo_types_test.cc.
void test_TPCID_nestedConstructor | ( | ) |
Definition at line 427 of file geo_types_test.cc.
void test_WireID_defaultConstructor | ( | ) |
Definition at line 638 of file geo_types_test.cc.
void test_WireID_directConstructor | ( | ) |
Definition at line 701 of file geo_types_test.cc.
void test_WireID_integralConstructor | ( | ) |
Definition at line 654 of file geo_types_test.cc.
void test_WireID_nestedConstructor | ( | ) |
Definition at line 673 of file geo_types_test.cc.
void TestCompareLargerID | ( | TESTID const & | id, |
REFID const & | larger | ||
) |
Test comparison operators.
Definition at line 188 of file geo_types_test.cc.
void TestCompareSameID | ( | TESTID const & | id, |
REFID const & | same | ||
) |
Test comparison operators.
Definition at line 172 of file geo_types_test.cc.
void TestCompareSelfID | ( | TESTID const & | id | ) |
Test comparison operators.
Definition at line 183 of file geo_types_test.cc.
void TestCompareSmallerID | ( | TESTID const & | id, |
REFID const & | smaller | ||
) |
Test comparison operators.
Definition at line 161 of file geo_types_test.cc.
void TestIDcomparison | ( | TESTID const & | id, |
REFID const & | smaller, | ||
REFID const & | same, | ||
REFID const & | larger | ||
) |
Test comparison operators.
Definition at line 200 of file geo_types_test.cc.
void TestIDvalidity | ( | geo::CryostatID const & | id, |
bool | answer | ||
) |
Definition at line 133 of file geo_types_test.cc.
void TestSetIDvalidity | ( | geo::CryostatID & | id | ) |
Definition at line 142 of file geo_types_test.cc.