Changeset View
Changeset View
Standalone View
Standalone View
src/test/cuckoocache_tests.cpp
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "cuckoocache.h" | #include <cuckoocache.h> | ||||
#include "random.h" | |||||
#include "script/sigcache.h" | |||||
#include "test/test_bitcoin.h" | |||||
#include <boost/thread/shared_mutex.hpp> | #include <random.h> | ||||
#include <script/sigcache.h> | |||||
#include <test/test_bitcoin.h> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <boost/thread/shared_mutex.hpp> | |||||
/** Test Suite for CuckooCache | /** Test Suite for CuckooCache | ||||
* | * | ||||
* 1) All tests should have a deterministic result (using insecure rand | * 1) All tests should have a deterministic result (using insecure rand | ||||
* with deterministic seeds) | * with deterministic seeds) | ||||
* 2) Some test methods are templated to allow for easier testing | * 2) Some test methods are templated to allow for easier testing | ||||
* against new versions / comparing | * against new versions / comparing | ||||
* 3) Results should be treated as a regression test, i.e., did the behavior | * 3) Results should be treated as a regression test, i.e., did the behavior | ||||
▲ Show 20 Lines • Show All 377 Lines • Show Last 20 Lines |