|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tpl Dynmaptree. More...
#include <gtest/gtest.h>#include <tpl_dynMapTree.H>#include <string>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (DynMapTree, DefaultConstruction) | |
| TEST (DynMapTree, ConstructFromKeys) | |
| TEST (DynMapTree, InsertReturnsNullptrOnDuplicate) | |
| TEST (DynMapTree, AppendAndPutAreAliases) | |
| TEST (DynMapTree, SearchHasContains) | |
| TEST (DynMapTree, FindThrowsOnMissing) | |
| TEST (DynMapTree, OperatorBracketsInsertsDefault) | |
| TEST (DynMapTree, ConstOperatorBracketsThrowsOnMissing) | |
| TEST (DynMapTree, RemoveReturnsData) | |
| TEST (DynMapTree, RemoveKeyThrowsOnMissing) | |
| TEST (DynMapTree, KeysAndValues) | |
| TEST (DynMapTree, ValuesPtrAndItemsPtr) | |
| TEST (DynMapTree, GetDataAndGetKeyHelpers) | |
| TEST (DynMapTree, CustomComparatorAffectsTraversalOrder) | |
| TEST (DynMapTree, TypeTraits) | |
| int | main (int argc, char **argv) |
Tests for Tpl Dynmaptree.
Definition in file tpl_dynMapTree_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 227 of file tpl_dynMapTree_test.cc.
References Aleph::maps().
| TEST | ( | DynMapTree | , |
| AppendAndPutAreAliases | |||
| ) |
Definition at line 103 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::append(), Aleph::maps(), Aleph::DynMapTree< Key, Data, Tree, Compare >::put(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| ConstOperatorBracketsThrowsOnMissing | |||
| ) |
Definition at line 140 of file tpl_dynMapTree_test.cc.
References Aleph::maps().
| TEST | ( | DynMapTree | , |
| ConstructFromKeys | |||
| ) |
Definition at line 73 of file tpl_dynMapTree_test.cc.
References Aleph::DynList< T >::append(), Aleph::DynMapTree< Key, Data, Tree, Compare >::has(), Aleph::maps(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| CustomComparatorAffectsTraversalOrder | |||
| ) |
Definition at line 207 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::insert(), and Aleph::maps().
| TEST | ( | DynMapTree | , |
| DefaultConstruction | |||
| ) |
Definition at line 66 of file tpl_dynMapTree_test.cc.
References Aleph::DynSetTree< Key, Tree, Compare >::is_empty(), Aleph::maps(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| FindThrowsOnMissing | |||
| ) |
Definition at line 124 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), and Aleph::maps().
| TEST | ( | DynMapTree | , |
| GetDataAndGetKeyHelpers | |||
| ) |
Definition at line 190 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::DynMapTree< Key, Data, Tree, Compare >::get_data(), Aleph::DynMapTree< Key, Data, Tree, Compare >::get_key(), Aleph::maps(), and Aleph::DynMapTree< Key, Data, Tree, Compare >::search().
| TEST | ( | DynMapTree | , |
| InsertReturnsNullptrOnDuplicate | |||
| ) |
Definition at line 92 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::DynMapTree< Key, Data, Tree, Compare >::insert(), Aleph::maps(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| KeysAndValues | |||
| ) |
Definition at line 164 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::keys(), Aleph::maps(), and Aleph::DynMapTree< Key, Data, Tree, Compare >::values().
| TEST | ( | DynMapTree | , |
| OperatorBracketsInsertsDefault | |||
| ) |
Definition at line 130 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::maps(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| RemoveKeyThrowsOnMissing | |||
| ) |
Definition at line 158 of file tpl_dynMapTree_test.cc.
References Aleph::maps(), and Aleph::DynMapTree< Key, Data, Tree, Compare >::remove_key().
| TEST | ( | DynMapTree | , |
| RemoveReturnsData | |||
| ) |
Definition at line 147 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::has(), Aleph::maps(), Aleph::DynMapTree< Key, Data, Tree, Compare >::remove(), and Aleph::DynSetTree< Key, Tree, Compare >::size().
| TEST | ( | DynMapTree | , |
| SearchHasContains | |||
| ) |
Definition at line 111 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::contains(), Aleph::DynMapTree< Key, Data, Tree, Compare >::has(), Aleph::maps(), and Aleph::DynMapTree< Key, Data, Tree, Compare >::search().
| TEST | ( | DynMapTree | , |
| TypeTraits | |||
| ) |
Definition at line 221 of file tpl_dynMapTree_test.cc.
| TEST | ( | DynMapTree | , |
| ValuesPtrAndItemsPtr | |||
| ) |
Definition at line 175 of file tpl_dynMapTree_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::DynList< T >::get_first(), Aleph::DynMapTree< Key, Data, Tree, Compare >::items_ptr(), Aleph::maps(), Aleph::HTList::size(), and Aleph::DynMapTree< Key, Data, Tree, Compare >::values_ptr().