#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.
◆ BOOST_AUTO_TEST_CASE()
◆ BOOST_AUTO_TEST_SUITE_END()
| BOOST_AUTO_TEST_SUITE_END |
( |
| ) |
|
◆ BOOST_FIXTURE_TEST_CASE() [1/4]
◆ BOOST_FIXTURE_TEST_CASE() [2/4]
◆ BOOST_FIXTURE_TEST_CASE() [3/4]
◆ BOOST_FIXTURE_TEST_CASE() [4/4]
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()
Test Suite for CuckooCache.
- All tests should have a deterministic result (using insecure rand with deterministic seeds)
- Some test methods are templated to allow for easier testing against new versions / comparing
- Results should be treated as a regression test, i.e., did the behavior change significantly from what was expected. This can be OK, depending on the nature of the change, but requires updating the tests to reflect the new expected behavior. For example improving the hit rate may cause some tests using BOOST_CHECK_CLOSE to fail.