![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
#include <common/args.h>#include <kernel/caches.h>#include <kernel/context.h>#include <key.h>#include <node/caches.h>#include <node/context.h>#include <optional>#include <ostream>#include <primitives/transaction.h>#include <pubkey.h>#include <stdexcept>#include <test/util/random.h>#include <util/chaintype.h>#include <util/check.h>#include <util/fs.h>#include <util/signalinterrupt.h>#include <util/string.h>#include <util/vector.h>#include <functional>#include <type_traits>#include <vector>Go to the source code of this file.
Classes | |
| struct | TestOpts |
| struct | BasicTestingSetup |
| Basic testing setup. More... | |
| struct | ChainTestingSetup |
| Testing setup that performs all steps up until right before ChainstateManager gets initialized. More... | |
| struct | TestingSetup |
| Testing setup that configures a complete environment. More... | |
| struct | RegTestingSetup |
| Identical to TestingSetup, but chain set to regtest. More... | |
| struct | Testnet4Setup |
| Identical to TestingSetup, but chain set to testnet4. More... | |
| struct | TestChain100Setup |
| Testing fixture that pre-creates a 100-block REGTEST-mode block chain. More... | |
Functions | |
| void | SetupCommonTestArgs (ArgsManager &argsman) |
| Register common test args. More... | |
| template<class T = const BasicTestingSetup> | |
| std::unique_ptr< T > | MakeNoLogFileContext (const ChainType chain_type=ChainType::REGTEST, TestOpts opts={}) |
| Make a test setup that has disk access to the debug.log file disabled. More... | |
| CBlock | getBlock13b8a () |
Variables | |
| const std::function< std::vector< const char * >()> | G_TEST_COMMAND_LINE_ARGUMENTS |
| Retrieve the command line arguments. More... | |
| const std::function< std::string()> | G_TEST_GET_FULL_NAME |
| Retrieve the unit test name. More... | |
| static constexpr CAmount | CENT {1000000} |
| CBlock getBlock13b8a | ( | ) |
Definition at line 613 of file setup_common.cpp.
| std::unique_ptr< T > MakeNoLogFileContext | ( | const ChainType | chain_type = ChainType::REGTEST, |
| TestOpts | opts = {} |
||
| ) |
Make a test setup that has disk access to the debug.log file disabled.
Can be used in "hot loops", for example fuzzing or benchmarking.
Definition at line 247 of file setup_common.h.
| void SetupCommonTestArgs | ( | ArgsManager & | argsman | ) |
Register common test args.
Shared across binaries that rely on the test framework.
Definition at line 100 of file setup_common.cpp.
|
staticconstexpr |
Definition at line 44 of file setup_common.h.
|
extern |