elements/src/test/util
2026-04-06 10:49:00 +00:00
..
blockfilter.cpp
blockfilter.h
chainstate.h
cluster_linearize.h
CMakeLists.txt Migrate elements build to Cmake 2026-03-24 11:11:11 +00:00
coins.cpp
coins.h
index.cpp
index.h
json.cpp
json.h
logging.cpp
logging.h
mining.cpp
mining.h
net.cpp Merge e51653985c into merged_master (Bitcoin PR bitcoin/bitcoin#30397) 2026-03-05 18:54:22 +00:00
net.h
poolresourcetester.h
random.cpp Merge 5c0cd205a1 into merged_master (Bitcoin PR bitcoin/bitcoin#29625) 2026-03-03 15:43:14 +00:00
random.h Merge 5c0cd205a1 into merged_master (Bitcoin PR bitcoin/bitcoin#29625) 2026-03-03 15:43:14 +00:00
README.md
script.cpp
script.h
setup_common.cpp Merge f34fe0806a into merged_master (Bitcoin PR bitcoin/bitcoin#31122) 2026-04-06 09:06:05 +00:00
setup_common.h Merge 4228259294 into merged_master (Bitcoin PR bitcoin/bitcoin#31000) 2026-04-03 11:28:30 +00:00
str.cpp
str.h
transaction_utils.cpp Merge 79f20fa1b1 into merged_master (Bitcoin PR bitcoin/bitcoin#30561) 2026-03-26 16:25:28 +00:00
transaction_utils.h Merge 79f20fa1b1 into merged_master (Bitcoin PR bitcoin/bitcoin#30561) 2026-03-26 16:25:28 +00:00
txmempool.cpp Merge f7144b24be into merged_master (Bitcoin PR bitcoin/bitcoin#31279) 2026-04-06 10:49:00 +00:00
txmempool.h Merge f7144b24be into merged_master (Bitcoin PR bitcoin/bitcoin#31279) 2026-04-06 10:49:00 +00:00
validation.cpp
validation.h

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).