|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for BiMap class (replacement for boost::bimap) More...

Go to the source code of this file.
Classes | |
| class | BiMapTest |
Functions | |
| TEST_F (BiMapTest, BasicInsertion) | |
| TEST_F (BiMapTest, LeftViewAccess) | |
| TEST_F (BiMapTest, RightViewAccess) | |
| TEST_F (BiMapTest, OutOfRangeException) | |
| TEST_F (BiMapTest, MakeBiMapHelper) | |
| TEST_F (BiMapTest, FindMethods) | |
| TEST_F (BiMapTest, StringToString) | |
Unit tests for BiMap class (replacement for boost::bimap)
This file contains comprehensive unit tests for the BiMap bidirectional map implementation. The BiMap class provides a two-way mapping between left and right value types, allowing efficient lookup in both directions.
std::out_of_range exceptions are thrown for both left_at() and right_at() when keys are not found.Definition in file TestBiMap.cpp.
| TEST_F | ( | BiMapTest | , |
| BasicInsertion | |||
| ) |
Definition at line 53 of file TestBiMap.cpp.
References BiMap< Left, Right >::insert(), BiMap< Left, Right >::left_at(), and BiMap< Left, Right >::right_at().

| TEST_F | ( | BiMapTest | , |
| FindMethods | |||
| ) |
Definition at line 114 of file TestBiMap.cpp.
References BiMap< Left, Right >::insert(), BiMap< Left, Right >::left_end(), BiMap< Left, Right >::left_find(), BiMap< Left, Right >::right_end(), and BiMap< Left, Right >::right_find().

| TEST_F | ( | BiMapTest | , |
| LeftViewAccess | |||
| ) |
Definition at line 68 of file TestBiMap.cpp.
References BiMap< Left, Right >::left_view::end(), BiMap< Left, Right >::left_view::find(), BiMap< Left, Right >::insert(), and BiMap< Left, Right >::left.

| TEST_F | ( | BiMapTest | , |
| MakeBiMapHelper | |||
| ) |
Definition at line 102 of file TestBiMap.cpp.
| TEST_F | ( | BiMapTest | , |
| OutOfRangeException | |||
| ) |
Definition at line 94 of file TestBiMap.cpp.
References BiMap< Left, Right >::insert(), BiMap< Left, Right >::left_at(), and BiMap< Left, Right >::right_at().

| TEST_F | ( | BiMapTest | , |
| RightViewAccess | |||
| ) |
Definition at line 81 of file TestBiMap.cpp.
References BiMap< Left, Right >::right_view::end(), BiMap< Left, Right >::right_view::find(), BiMap< Left, Right >::insert(), and BiMap< Left, Right >::right.

| TEST_F | ( | BiMapTest | , |
| StringToString | |||
| ) |
Definition at line 134 of file TestBiMap.cpp.
References BiMap< Left, Right >::insert(), BiMap< Left, Right >::left_at(), and BiMap< Left, Right >::right_at().
