Bitcoin Core  22.99.0
P2P Digital Currency
Public Types | Public Member Functions | Static Public Attributes | List of all members
ArgsMergeTestingSetup Struct Reference
Inheritance diagram for ArgsMergeTestingSetup:
Collaboration diagram for ArgsMergeTestingSetup:

Public Types

enum  Action {
using ActionList = Action[MAX_ACTIONS]

Public Member Functions

template<typename Fn >
void ForEachMergeSetup (Fn &&fn)
 Enumerate all possible test configurations. More...
std::vector< std::string > GetValues (const ActionList &actions, const std::string &section, const std::string &name, const std::string &value_prefix)
 Translate actions into a list of <key>=setting strings. More...
- Public Member Functions inherited from BasicTestingSetup
 BasicTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 ~BasicTestingSetup ()

Static Public Attributes

static constexpr int MAX_ACTIONS = 3
 Max number of actions to sequence together. More...

Additional Inherited Members

- Public Attributes inherited from BasicTestingSetup
ECCVerifyHandle globalVerifyHandle
node::NodeContext m_node
const fs::path m_path_root
ArgsManager m_args

Detailed Description

Definition at line 914 of file util_tests.cpp.

Member Typedef Documentation

◆ ActionList

Definition at line 920 of file util_tests.cpp.

Member Enumeration Documentation

◆ Action


Definition at line 919 of file util_tests.cpp.

Member Function Documentation

◆ ForEachMergeSetup()

template<typename Fn >
void ArgsMergeTestingSetup::ForEachMergeSetup ( Fn &&  fn)

Enumerate all possible test configurations.

Definition at line 924 of file util_tests.cpp.

Here is the call graph for this function:

◆ GetValues()

std::vector<std::string> ArgsMergeTestingSetup::GetValues ( const ActionList actions,
const std::string &  section,
const std::string &  name,
const std::string &  value_prefix 

Translate actions into a list of <key>=setting strings.

Definition at line 947 of file util_tests.cpp.

Here is the call graph for this function:

Member Data Documentation


constexpr int ArgsMergeTestingSetup::MAX_ACTIONS = 3

Max number of actions to sequence together.

Can decrease this when debugging to make test results easier to understand.

Definition at line 917 of file util_tests.cpp.

The documentation for this struct was generated from the following file: