|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for Odhash. More...
Go to the source code of this file.
Classes | |
| struct | MyRecord |
| struct | MyRecord::Eq |
| struct | ODhashBucketStats |
Functions | |
| TEST (ODhashTable, Simplest) | |
| size_t | fst_hast (const MyRecord &r) noexcept |
| size_t | snd_hash (const MyRecord &r) noexcept |
| TEST (ODhashTable, Map) | |
| TEST (ODhashTable, KeyToBucketRoundTrip) | |
| TEST (ODhashTable, RemoveNonExistentKeyPreservesTableIntegrity) | |
| TEST (ODhashTable, RemoveWithExternalKey) | |
| TEST (ODhashTable, RemoveWithInternalKey) | |
| TEST (ODhashTable, RemoveNonExistentDoesNotRehash) | |
| TEST (ODhashTable, Fuzz_RandomOperationsWithOracle) | |
| TEST (ODhashTable, Stress_FillAndEmpty) | |
| TEST (ODhashTable, Stress_ManyCollisions) | |
| TEST (ODhashTable, Stress_InsertRemoveCycles) | |
| TEST (ODhashTable, Stress_ResizeOperations) | |
| TEST (ODhashTable, Fuzz_InterleavedOperations) | |
| TEST (ODhashTable, Stress_WithAutoResize) | |
| TEST (ODhashTable, Stress_StringKeys) | |
| TEST (ODhashTable, SearchOrInsert_WithDeletedEntries) | |
| TEST (ODhashTable, ContainsOrInsert_WithCollisions) | |
| TEST (ODhashTable, Stress_SearchOrInsertWithDeleted) | |
| TEST (ODhashTable, Debug_SearchOrInsertBug) | |
| TEST (ODhashTable, CopyConstructor) | |
| TEST (ODhashTable, MoveConstructor) | |
| TEST (ODhashTable, CopyAssignment) | |
| TEST (ODhashTable, MoveAssignment) | |
| TEST (ODhashTable, SelfAssignment) | |
| TEST (ODhashTable, EmptyTableOperations) | |
| TEST (ODhashTable, SingleElement) | |
| TEST (ODhashTable, DuplicateInsertReturnsNull) | |
| TEST (ODhashTable, HasAndContains) | |
| TEST (ODhashTable, Find) | |
| TEST (ODhashTable, ManualRehash) | |
| TEST (ODhashTable, ResizeUp) | |
| TEST (ODhashTable, ResizeDown) | |
| TEST (ODhashTable, IteratorBasic) | |
| TEST (ODhashTable, IteratorEmpty) | |
| TEST (ODhashTable, IteratorSingleElement) | |
| TEST (ODhashTable, IteratorDelete) | |
| template<typename HashTable > | |
| ODhashBucketStats | count_odhash_bucket_states (const HashTable &tbl) |
| TEST (ODhashTable, ProbeCounterCleanup_LastInChainBecomesEmpty) | |
| TEST (ODhashTable, ProbeCounterCleanup_MiddleStaysDeleted) | |
| TEST (ODhashTable, ProbeCounterCleanup_ChainCleanup) | |
| TEST (ODhashTable, ForEach) | |
| TEST (ODhashTable, All) | |
| TEST (ODhashTable, Exists) | |
| TEST (ODhashTable, Filter) | |
Tests for Odhash.
Definition in file odhash.cc.
| ODhashBucketStats count_odhash_bucket_states | ( | const HashTable & | tbl | ) |
Definition at line 1154 of file odhash.cc.
References ODhashBucketStats::busy, ODhashBucketStats::deleted, ODhashBucketStats::empty, and tbl.
|
inlinenoexcept |
|
inlinenoexcept |
| TEST | ( | ODhashTable | , |
| All | |||
| ) |
Definition at line 1254 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ContainsOrInsert_WithCollisions | |||
| ) |
Definition at line 720 of file odhash.cc.
References Aleph::maps(), Aleph::DynList< T >::remove(), and tbl.
| TEST | ( | ODhashTable | , |
| CopyAssignment | |||
| ) |
Definition at line 901 of file odhash.cc.
References Aleph::copy(), Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | ODhashTable | , |
| CopyConstructor | |||
| ) |
Definition at line 861 of file odhash.cc.
References Aleph::copy(), Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | ODhashTable | , |
| Debug_SearchOrInsertBug | |||
| ) |
Definition at line 810 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::DynList< T >::remove(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| DuplicateInsertReturnsNull | |||
| ) |
Definition at line 982 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| EmptyTableOperations | |||
| ) |
Definition at line 956 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Exists | |||
| ) |
Definition at line 1264 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Filter | |||
| ) |
Definition at line 1274 of file odhash.cc.
References FunctionalMethods< Container, T >::filter(), Aleph::maps(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Find | |||
| ) |
Definition at line 1010 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ForEach | |||
| ) |
Definition at line 1242 of file odhash.cc.
References Aleph::maps(), Aleph::sum(), and tbl.
| TEST | ( | ODhashTable | , |
| Fuzz_InterleavedOperations | |||
| ) |
Definition at line 524 of file odhash.cc.
References FAIL, Aleph::DynList< T >::insert(), Aleph::maps(), rng, Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Fuzz_RandomOperationsWithOracle | |||
| ) |
Definition at line 290 of file odhash.cc.
References FAIL, Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::DynList< T >::remove(), rng, Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| HasAndContains | |||
| ) |
Definition at line 995 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| IteratorBasic | |||
| ) |
Definition at line 1088 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| IteratorDelete | |||
| ) |
Definition at line 1127 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| IteratorEmpty | |||
| ) |
Definition at line 1106 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| IteratorSingleElement | |||
| ) |
Definition at line 1114 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| KeyToBucketRoundTrip | |||
| ) |
Definition at line 144 of file odhash.cc.
References OhashCommon< HashTbl, Key >::insert(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ManualRehash | |||
| ) |
Definition at line 1027 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Map | |||
| ) |
Definition at line 115 of file odhash.cc.
References fst_hast(), Aleph::maps(), snd_hash(), tbl, and Aleph::to_string().
| TEST | ( | ODhashTable | , |
| MoveAssignment | |||
| ) |
Definition at line 920 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | ODhashTable | , |
| MoveConstructor | |||
| ) |
Definition at line 883 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and Aleph::HTList::size().
| TEST | ( | ODhashTable | , |
| ProbeCounterCleanup_ChainCleanup | |||
| ) |
Definition at line 1220 of file odhash.cc.
References count_odhash_bucket_states(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ProbeCounterCleanup_LastInChainBecomesEmpty | |||
| ) |
Definition at line 1170 of file odhash.cc.
References count_odhash_bucket_states(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ProbeCounterCleanup_MiddleStaysDeleted | |||
| ) |
Definition at line 1196 of file odhash.cc.
References count_odhash_bucket_states(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| RemoveNonExistentDoesNotRehash | |||
| ) |
Definition at line 254 of file odhash.cc.
References Aleph::maps(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| RemoveNonExistentKeyPreservesTableIntegrity | |||
| ) |
Definition at line 162 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| RemoveWithExternalKey | |||
| ) |
Definition at line 208 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| RemoveWithInternalKey | |||
| ) |
Definition at line 233 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ResizeDown | |||
| ) |
Definition at line 1069 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| ResizeUp | |||
| ) |
Definition at line 1052 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| SearchOrInsert_WithDeletedEntries | |||
| ) |
Definition at line 678 of file odhash.cc.
References Aleph::maps(), Aleph::DynList< T >::remove(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| SelfAssignment | |||
| ) |
Definition at line 939 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Simplest | |||
| ) |
Definition at line 49 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| SingleElement | |||
| ) |
Definition at line 968 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_FillAndEmpty | |||
| ) |
Definition at line 372 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), rng, Aleph::shuffle(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_InsertRemoveCycles | |||
| ) |
Definition at line 446 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_ManyCollisions | |||
| ) |
Definition at line 410 of file odhash.cc.
References Aleph::maps(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_ResizeOperations | |||
| ) |
Definition at line 477 of file odhash.cc.
References StlAlephIterator< SetName >::begin(), Aleph::DynList< T >::insert(), Aleph::maps(), rng, Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_SearchOrInsertWithDeleted | |||
| ) |
Definition at line 754 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_StringKeys | |||
| ) |
Definition at line 629 of file odhash.cc.
References Aleph::DynList< T >::insert(), Aleph::maps(), random_string(), rng, Aleph::HTList::size(), and tbl.
| TEST | ( | ODhashTable | , |
| Stress_WithAutoResize | |||
| ) |
Definition at line 580 of file odhash.cc.
References StlAlephIterator< SetName >::begin(), StlAlephIterator< SetName >::end(), Aleph::DynList< T >::insert(), Aleph::maps(), rng, Aleph::HTList::size(), and tbl.