![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <cuckoocache.h>#include <random.h>#include <script/sigcache.h>#include <test/util/random.h>#include <test/util/setup_common.h>#include <boost/test/unit_test.hpp>#include <deque>#include <mutex>#include <shared_mutex>#include <thread>#include <vector>Go to the source code of this file.
Classes | |
| struct | HitRateTest |
| struct | EraseTest |
| struct | EraseParallelTest |
| struct | GenerationsTest |
Functions | |
| BOOST_FIXTURE_TEST_SUITE (cuckoocache_tests, BasicTestingSetup) | |
| Test Suite for CuckooCache. More... | |
| BOOST_AUTO_TEST_CASE (test_cuckoocache_no_fakes) | |
| BOOST_FIXTURE_TEST_CASE (cuckoocache_hit_rate_ok, HitRateTest) | |
| Check the hit rate on loads ranging from 0.1 to 1.6. More... | |
| BOOST_FIXTURE_TEST_CASE (cuckoocache_erase_ok, EraseTest) | |
| BOOST_FIXTURE_TEST_CASE (cuckoocache_erase_parallel_ok, EraseParallelTest) | |
| BOOST_FIXTURE_TEST_CASE (cuckoocache_generations, GenerationsTest) | |
| BOOST_AUTO_TEST_SUITE_END () | |
| BOOST_AUTO_TEST_CASE | ( | test_cuckoocache_no_fakes | ) |
| BOOST_AUTO_TEST_SUITE_END | ( | ) |
| BOOST_FIXTURE_TEST_CASE | ( | cuckoocache_erase_ok | , |
| EraseTest | |||
| ) |
Definition at line 186 of file cuckoocache_tests.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | cuckoocache_erase_parallel_ok | , |
| EraseParallelTest | |||
| ) |
Definition at line 278 of file cuckoocache_tests.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | cuckoocache_generations | , |
| GenerationsTest | |||
| ) |
Definition at line 377 of file cuckoocache_tests.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | cuckoocache_hit_rate_ok | , |
| HitRateTest | |||
| ) |
Check the hit rate on loads ranging from 0.1 to 1.6.
Arbitrarily selected Hit Rate threshold that happens to work for this test as a lower bound on performance.
Definition at line 111 of file cuckoocache_tests.cpp.
| BOOST_FIXTURE_TEST_SUITE | ( | cuckoocache_tests | , |
| BasicTestingSetup | |||
| ) |
Test Suite for CuckooCache.