|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Comprehensive tests for Random_Set and shuffle functions. More...
#include <gtest/gtest.h>#include <tpl_random_queue.H>#include <tpl_dynDlist.H>#include <set>#include <map>#include <algorithm>#include <thread>#include <chrono>Go to the source code of this file.
Classes | |
| class | RandomSetTest |
Functions | |
| TEST_F (RandomSetTest, InitiallyEmpty) | |
| TEST_F (RandomSetTest, PutAndSize) | |
| TEST_F (RandomSetTest, GetReducesSize) | |
| TEST_F (RandomSetTest, GetReturnsInsertedElements) | |
| TEST_F (RandomSetTest, GetFromEmptyThrows) | |
| TEST_F (RandomSetTest, PickDoesNotRemove) | |
| TEST_F (RandomSetTest, PickFromEmptyThrows) | |
| TEST_F (RandomSetTest, AppendInsertsElement) | |
| TEST_F (RandomSetTest, AppendReturnsReference) | |
| TEST_F (RandomSetTest, CopyConstructor) | |
| TEST_F (RandomSetTest, MoveConstructor) | |
| TEST_F (RandomSetTest, CopyAssignment) | |
| TEST_F (RandomSetTest, MoveAssignment) | |
| TEST (RandomSetConstructors, InitializerList) | |
| TEST (RandomSetConstructors, FromDynList) | |
| TEST (RandomSetConstructors, FromIteratorRange) | |
| TEST (RandomSetRandomness, GetIsRandomWithDifferentSeeds) | |
| TEST (RandomSetRandomness, SetSeedProducesReproducibleResults) | |
| TEST_F (RandomSetTest, TraverseAllElements) | |
| TEST_F (RandomSetTest, TraverseEarlyTermination) | |
| TEST (ShuffleFunction, ShufflesDynList) | |
| TEST (ShuffleFunction, ShuffleProducesPermutation) | |
| TEST (RandomSetMoveSemantics, PutWithMove) | |
| TEST (RandomSetMoveSemantics, AppendWithMove) | |
| TEST (RandomSetStress, ManyElements) | |
| TEST (RandomSetStress, ManyPutGetCycles) | |
| TEST_F (RandomSetTest, SingleElement) | |
| TEST_F (RandomSetTest, DuplicateElements) | |
| int | main (int argc, char **argv) |
Comprehensive tests for Random_Set and shuffle functions.
Definition in file tpl_random_queue_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 471 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST | ( | RandomSetConstructors | , |
| FromDynList | |||
| ) |
Definition at line 225 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::append(), Aleph::maps(), and Aleph::Random_Set< T >::size().
| TEST | ( | RandomSetConstructors | , |
| FromIteratorRange | |||
| ) |
Definition at line 237 of file tpl_random_queue_test.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::maps(), and Aleph::Random_Set< T >::size().
| TEST | ( | RandomSetConstructors | , |
| InitializerList | |||
| ) |
Definition at line 211 of file tpl_random_queue_test.cc.
References Aleph::Random_Set< T >::get(), Aleph::DynList< T >::insert(), Aleph::Random_Set< T >::is_empty(), Aleph::maps(), and Aleph::Random_Set< T >::size().
| TEST | ( | RandomSetMoveSemantics | , |
| AppendWithMove | |||
| ) |
Definition at line 388 of file tpl_random_queue_test.cc.
References Aleph::Random_Set< T >::append(), Aleph::maps(), and Aleph::Random_Set< T >::size().
| TEST | ( | RandomSetMoveSemantics | , |
| PutWithMove | |||
| ) |
Definition at line 377 of file tpl_random_queue_test.cc.
References Aleph::maps(), Aleph::Random_Set< T >::put(), and Aleph::Random_Set< T >::size().
| TEST | ( | RandomSetRandomness | , |
| GetIsRandomWithDifferentSeeds | |||
| ) |
Definition at line 250 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::get(), Aleph::HTList::is_empty(), Aleph::maps(), N, and Aleph::DynList< T >::put().
| TEST | ( | RandomSetRandomness | , |
| SetSeedProducesReproducibleResults | |||
| ) |
Definition at line 277 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::get(), Aleph::HTList::is_empty(), Aleph::maps(), and Aleph::DynList< T >::put().
| TEST | ( | RandomSetStress | , |
| ManyElements | |||
| ) |
Definition at line 402 of file tpl_random_queue_test.cc.
References Aleph::Random_Set< T >::get(), Aleph::DynList< T >::insert(), Aleph::Random_Set< T >::is_empty(), Aleph::maps(), N, Aleph::Random_Set< T >::put(), Aleph::Random_Set< T >::size(), and Aleph::HTList::size().
| TEST | ( | RandomSetStress | , |
| ManyPutGetCycles | |||
| ) |
Definition at line 421 of file tpl_random_queue_test.cc.
References Aleph::Random_Set< T >::get(), Aleph::maps(), Aleph::Random_Set< T >::put(), and Aleph::Random_Set< T >::size().
| TEST | ( | ShuffleFunction | , |
| ShuffleProducesPermutation | |||
| ) |
Definition at line 356 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::append(), FunctionalMethods< Container, T >::for_each(), Aleph::maps(), and Aleph::shuffle().
| TEST | ( | ShuffleFunction | , |
| ShufflesDynList | |||
| ) |
Definition at line 337 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::append(), FunctionalMethods< Container, T >::for_each(), Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::shuffle(), and Aleph::HTList::size().
| TEST_F | ( | RandomSetTest | , |
| AppendInsertsElement | |||
| ) |
Definition at line 131 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| AppendReturnsReference | |||
| ) |
Definition at line 141 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::append(), and Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| CopyAssignment | |||
| ) |
Definition at line 183 of file tpl_random_queue_test.cc.
References Aleph::maps(), Aleph::DynList< T >::put(), and Aleph::HTList::size().
| TEST_F | ( | RandomSetTest | , |
| CopyConstructor | |||
| ) |
Definition at line 152 of file tpl_random_queue_test.cc.
References Aleph::copy(), Aleph::DynList< T >::insert(), and Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| DuplicateElements | |||
| ) |
Definition at line 452 of file tpl_random_queue_test.cc.
References Aleph::maps(), and Aleph::sum().
| TEST_F | ( | RandomSetTest | , |
| GetFromEmptyThrows | |||
| ) |
Definition at line 104 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| GetReducesSize | |||
| ) |
Definition at line 76 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| GetReturnsInsertedElements | |||
| ) |
Definition at line 91 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::DynList< T >::put().
| TEST_F | ( | RandomSetTest | , |
| InitiallyEmpty | |||
| ) |
Definition at line 59 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| MoveAssignment | |||
| ) |
Definition at line 196 of file tpl_random_queue_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | RandomSetTest | , |
| MoveConstructor | |||
| ) |
Definition at line 172 of file tpl_random_queue_test.cc.
References Aleph::maps(), and Aleph::HTList::size().
| TEST_F | ( | RandomSetTest | , |
| PickDoesNotRemove | |||
| ) |
Definition at line 109 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| PickFromEmptyThrows | |||
| ) |
Definition at line 122 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| PutAndSize | |||
| ) |
Definition at line 65 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| SingleElement | |||
| ) |
Definition at line 444 of file tpl_random_queue_test.cc.
References Aleph::maps().
| TEST_F | ( | RandomSetTest | , |
| TraverseAllElements | |||
| ) |
Definition at line 303 of file tpl_random_queue_test.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and GenericTraverse< Container >::traverse().
| TEST_F | ( | RandomSetTest | , |
| TraverseEarlyTermination | |||
| ) |
Definition at line 319 of file tpl_random_queue_test.cc.
References Aleph::count(), and Aleph::maps().