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:
ismaelsadeeq
2025-11-17 14:49:13 +00:00
parent e3d5ef1b5f
commit 9c8309a890
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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

View File

@@ -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};