bitcoin/src/test/util
Carl Dong 9a5a5a3d08 test/setup: Use LoadChainstate
This commit coalesces the chainstate loading sequence between our unit
test and non-unit test init codepaths.
2021-12-07 14:48:49 -05:00
..
blockfilter.cpp move-only: Move *Disk functions to blockstorage 2021-04-05 20:26:14 +02:00
blockfilter.h
chainstate.h Merge bitcoin/bitcoin#23155: rpc: various fixups for dumptxoutset 2021-12-02 10:35:02 +01:00
logging.cpp scripted-diff: remove MakeUnique<T>() 2021-03-11 13:45:14 +08:00
logging.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
mining.cpp style: Sort file list after rename 2021-11-16 10:05:21 +01:00
mining.h fuzz: Add utxo_snapshot target 2021-05-16 11:34:27 +02:00
net.cpp scripted-diff: Use clang-tidy syntax for C++ named arguments 2021-11-19 12:41:47 +01:00
net.h scripted-diff: rename node vector/mutex members in CConnman 2021-11-24 19:34:21 +01:00
README.md
script.cpp fuzz: [refactor] Use IsValidFlagCombination in signature_checker fuzz target 2021-03-30 10:42:45 +02:00
script.h fuzz: [refactor] Use IsValidFlagCombination in signature_checker fuzz target 2021-03-30 10:42:45 +02:00
setup_common.cpp test/setup: Use LoadChainstate 2021-12-07 14:48:49 -05:00
setup_common.h test/setup: Use LoadChainstate 2021-12-07 14:48:49 -05:00
str.cpp
str.h
transaction_utils.cpp
transaction_utils.h
validation.cpp test: Mock IBD in net_processing fuzzers 2020-11-07 07:50:59 +01:00
validation.h test: Mock IBD in net_processing fuzzers 2020-11-07 07:50:59 +01:00
wallet.cpp bench: Use DescriptorScriptPubKeyMan for wallet things 2021-10-15 15:23:07 -04:00
wallet.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).