|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for HashStats::stats() on separate-chaining hash tables. More...
Go to the source code of this file.
Functions | |
| TYPED_TEST (HashChainStats, EmptyTableHasOnlyEmptyChains) | |
| TYPED_TEST (HashChainStats, HistogramAccountsForEveryChainAndEntry) | |
| TEST (HashChainStats, ChainLongerThanSeveralHistogramBlocks) | |
| TEST (HashChainStats, ATableWithoutListsHasNoChains) | |
Tests for HashStats::stats() on separate-chaining hash tables.
The chain-length histogram used to miss every length recorded inside an already allocated block, so the average was wrong (zero for a table with entries). On a linear hash table, whose buckets live in a lazy DynArray, stats() also threw when a bucket had never been written, for instance on an empty table.
Definition in file hash_chain_stats_test.cc.
| TEST | ( | HashChainStats | , |
| ATableWithoutListsHasNoChains | |||
| ) |
Definition at line 127 of file hash_chain_stats_test.cc.
| TEST | ( | HashChainStats | , |
| ChainLongerThanSeveralHistogramBlocks | |||
| ) |
Definition at line 107 of file hash_chain_stats_test.cc.
References Aleph::DynHashTable< Key, HashTable, Cmp >::insert().
| TYPED_TEST | ( | HashChainStats | , |
| EmptyTableHasOnlyEmptyChains | |||
| ) |
Definition at line 86 of file hash_chain_stats_test.cc.
| TYPED_TEST | ( | HashChainStats | , |
| HistogramAccountsForEveryChainAndEntry | |||
| ) |
Definition at line 95 of file hash_chain_stats_test.cc.