mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
test: rename policy estimator tests to block policy estimator tests
Rename policyestimator_tests.cpp to blockpolicyestimator_tests.cpp. Also rename the policy_estimator fuzz target to block_policy_estimator so the test names match CBlockPolicyEstimator. This makes the block policy fee rate estimator test files accurate and concise, which makes adding another fee rate estimator test files straightforward.
This commit is contained in:
@@ -24,6 +24,7 @@ add_executable(test_bitcoin
|
||||
blockfilter_index_tests.cpp
|
||||
blockfilter_tests.cpp
|
||||
blockmanager_tests.cpp
|
||||
blockpolicyestimator_tests.cpp
|
||||
bloom_tests.cpp
|
||||
bswap_tests.cpp
|
||||
btcsignals_tests.cpp
|
||||
@@ -76,7 +77,6 @@ add_executable(test_bitcoin
|
||||
pcp_tests.cpp
|
||||
peerman_tests.cpp
|
||||
pmt_tests.cpp
|
||||
policyestimator_tests.cpp
|
||||
pool_tests.cpp
|
||||
pow_tests.cpp
|
||||
prevector_tests.cpp
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(policyestimator_tests, ChainTestingSetup)
|
||||
BOOST_FIXTURE_TEST_SUITE(blockpolicyestimator_tests, ChainTestingSetup)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
|
||||
{
|
||||
@@ -20,6 +20,7 @@ add_executable(fuzz
|
||||
block_header.cpp
|
||||
block_index.cpp
|
||||
block_index_tree.cpp
|
||||
block_policy_estimator.cpp
|
||||
blockfilter.cpp
|
||||
bloom_filter.cpp
|
||||
buffered_file.cpp
|
||||
@@ -89,7 +90,6 @@ add_executable(fuzz
|
||||
parse_script.cpp
|
||||
parse_univalue.cpp
|
||||
partially_downloaded_block.cpp
|
||||
policy_estimator.cpp
|
||||
policy_estimator_io.cpp
|
||||
poolresource.cpp
|
||||
pow.cpp
|
||||
|
||||
@@ -21,13 +21,13 @@ namespace {
|
||||
const BasicTestingSetup* g_setup;
|
||||
} // namespace
|
||||
|
||||
void initialize_policy_estimator()
|
||||
void initialize_block_policy_estimator()
|
||||
{
|
||||
static const auto testing_setup = MakeNoLogFileContext<>();
|
||||
g_setup = testing_setup.get();
|
||||
}
|
||||
|
||||
FUZZ_TARGET(policy_estimator, .init = initialize_policy_estimator)
|
||||
FUZZ_TARGET(block_policy_estimator, .init = initialize_block_policy_estimator)
|
||||
{
|
||||
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||
bool good_data{true};
|
||||
Reference in New Issue
Block a user