EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeometryHierarchyMapTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Geometry/GeometryHierarchyMap.hpp"
#include <iterator>
#include <stdexcept>
+ Include dependency graph for GeometryHierarchyMapTests.cpp:

Go to the source code of this file.

Macros

#define CHECK_ENTRY(container, query, compare)
 

Functions

 BOOST_AUTO_TEST_CASE (ConstructDefault)
 
 BOOST_AUTO_TEST_CASE (ConstructNonUnique)
 
 BOOST_AUTO_TEST_CASE (ConstructInitializerList)
 
 BOOST_AUTO_TEST_CASE (IndexBasedAccess)
 
 BOOST_AUTO_TEST_CASE (Find)
 
 BOOST_AUTO_TEST_CASE (FindWithGlobalDefault)
 

Macro Definition Documentation

#define CHECK_ENTRY (   container,
  query,
  compare 
)
Value:
do { \
auto ret = container.find(query); \
BOOST_CHECK_NE(ret, container.end()); \
if (ret != container.end()) { \
auto idx = std::distance(container.begin(), ret); \
BOOST_CHECK_EQUAL(container.idAt(idx), compare); \
} \
} while (false)

Definition at line 36 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 36 of file GeometryHierarchyMapTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

Function Documentation

BOOST_AUTO_TEST_CASE ( ConstructDefault  )

Definition at line 51 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 51 of file GeometryHierarchyMapTests.cpp

References c, and Acts::UnitConstants::u.

BOOST_AUTO_TEST_CASE ( ConstructNonUnique  )

Definition at line 58 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 58 of file GeometryHierarchyMapTests.cpp

References Acts::Test::makeId().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ConstructInitializerList  )

Definition at line 76 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 76 of file GeometryHierarchyMapTests.cpp

References c, CHECK_ENTRY, Acts::Test::makeId(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( IndexBasedAccess  )

Definition at line 92 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 92 of file GeometryHierarchyMapTests.cpp

References c, Acts::Test::makeId(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Find  )

Definition at line 115 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 115 of file GeometryHierarchyMapTests.cpp

References c, CHECK_ENTRY, Acts::Test::makeId(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( FindWithGlobalDefault  )

Definition at line 161 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 161 of file GeometryHierarchyMapTests.cpp

References c, CHECK_ENTRY, Acts::Test::makeId(), and Acts::UnitConstants::u.

+ Here is the call graph for this function: