elements/src/test/util
Eugene Siegel 25f975b8df
test: remove noexcept(false) comment in ~DebugLogHelper
Github-Pull: #33011
Rebased-From: 616bc22f131132b9239ef362dca8c6bce000a539
2025-08-20 11:51:06 +01:00
..
blockfilter.cpp scripted-diff: rename block and undo functions for consistency 2025-01-09 15:17:02 +01:00
blockfilter.h
chainstate.h scripted-diff: Modernize naming of nChainTx and nTxCount 2024-08-04 14:24:43 +02:00
cluster_linearize.h clusterlin: remove Cluster type 2024-10-07 13:49:36 -04:00
CMakeLists.txt cmake: Add wallet functionality 2024-08-16 19:27:40 +01:00
coins.cpp test: refactor: Accept any RandomNumberGenerator in RandMoney 2024-08-26 11:19:43 +02:00
coins.h test: refactor: Pass rng parameters to test functions 2024-08-26 11:19:16 +02:00
index.cpp refactor: Remove call to ShutdownRequested from IndexWaitSynced 2023-12-04 15:39:15 -04:00
index.h refactor: Remove call to ShutdownRequested from IndexWaitSynced 2023-12-04 15:39:15 -04:00
json.cpp test: Use string_view for json_tests 2024-09-03 16:06:20 +02:00
json.h test: Use string_view for json_tests 2024-09-03 16:06:20 +02:00
logging.cpp
logging.h test: remove noexcept(false) comment in ~DebugLogHelper 2025-08-20 11:51:06 +01:00
mining.cpp test: drop extraneous bracket in mining util 2024-12-18 14:55:19 +07:00
mining.h test: drop scriptPubKeyIn arg from CreateNewBlock 2024-12-04 12:46:33 +07:00
net.cpp test: add a mocked Sock that allows inspecting what has been Send() to it 2024-12-24 10:38:14 +01:00
net.h Merge bitcoin/bitcoin#30205: test: add mocked Sock that can read/write custom data and/or CNetMessages 2025-02-10 08:47:19 -05:00
poolresourcetester.h
random.cpp fuzz: Abort when global PRNG is used before SeedRand::ZEROS 2025-01-08 15:58:42 +01:00
random.h fuzz: Abort when using global PRNG without re-seed 2024-12-16 15:23:56 +01:00
README.md
script.cpp
script.h fuzz: allow reaching MempoolAcceptResult::ResultType::DIFFERENT_WITNESS in tx_package_eval target 2023-11-09 09:07:03 -05:00
setup_common.cpp Merge bitcoin/bitcoin#30965: kernel: Move block tree db open to block manager 2025-01-31 15:28:06 -05:00
setup_common.h kernel: Move kernel-specific cache size options to kernel 2025-01-15 15:44:16 +01:00
str.cpp
str.h
transaction_utils.cpp refactor: move SignSignature helpers to test utils 2024-09-04 21:06:09 +02:00
transaction_utils.h refactor: move SignSignature helpers to test utils 2024-09-04 21:06:09 +02:00
txmempool.cpp Merge bitcoin/bitcoin#31279: policy: ephemeral dust followups 2024-11-25 13:47:44 -05:00
txmempool.h Merge bitcoin/bitcoin#31279: policy: ephemeral dust followups 2024-11-25 13:47:44 -05:00
validation.cpp validation: pass ChainstateRole for validationinterface calls 2023-09-30 06:38:47 -04:00
validation.h validation: pass ChainstateRole for validationinterface calls 2023-09-30 06:38:47 -04:00

Test library

This contains files for the test library, which is used by the test binaries (unit tests, benchmarks, fuzzers, gui tests).

Generally, the files in this folder should be well-separated modules. New code should be added to existing modules or (when in doubt) a new module should be created.

The utilities in here are compiled into a library, which does not hold any state. However, the main file setup_common defines the common test setup for all test binaries. The test binaries will handle the global state when they instantiate the BasicTestingSetup (or one of its derived classes).