bitcoin/src/test/util
2020-03-14 12:23:01 -07:00
..
blockfilter.cpp
blockfilter.h
logging.cpp
logging.h
mining.cpp rpc: Remove mempool global from miner 2019-12-23 06:12:10 +07:00
mining.h rpc: Remove mempool global from miner 2019-12-23 06:12:10 +07:00
README.md
setup_common.cpp Replace std::to_string with locale-independent alternative 2020-03-14 12:23:01 -07:00
setup_common.h Replace std::to_string with locale-independent alternative 2020-03-14 12:23:01 -07:00
str.cpp
str.h [test] move string helper functions into test library 2019-11-25 01:33:17 +01:00
transaction_utils.cpp refactor: test/bench: dedup SetupDummyInputs() 2020-02-28 21:09:03 +01:00
transaction_utils.h refactor: test/bench: dedup SetupDummyInputs() 2020-02-28 21:09:03 +01:00
wallet.cpp Locking: Lock cs_KeyStore instead of cs_wallet in legacy keyman 2020-01-23 16:34:28 -05:00
wallet.h [test] move wallet helper functions into test library 2019-11-25 16:40:09 +01: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).