Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
ArgsMergeTestingSetup Struct Reference
Inheritance diagram for ArgsMergeTestingSetup:
[legend]
Collaboration diagram for ArgsMergeTestingSetup:
[legend]

Public Types

enum  Action {
  NONE , SET , NEGATE , SECTION_SET ,
  SECTION_NEGATE
}
using ActionList = Action[MAX_ACTIONS]

Public Member Functions

template<typename Fn>
void ForEachMergeSetup (Fn &&fn)
 Enumerate all possible test configurations.
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.
Public Member Functions inherited from BasicTestingSetup
void SeedRandomForTest (SeedRand seed)
 Seed the global RNG state and m_rng for testing and log the seed value.
 BasicTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~BasicTestingSetup ()

Static Public Attributes

static constexpr int MAX_ACTIONS = 3

Additional Inherited Members

Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
node::NodeContext m_node
FastRandomContext m_rng
fs::path m_path_root
fs::path m_path_lock
bool m_has_custom_datadir {false}
ArgsManager m_args
 Test-specific arguments and settings.

Detailed Description

Definition at line 745 of file argsman_tests.cpp.

Member Typedef Documentation

◆ ActionList

Member Enumeration Documentation

◆ Action

Enumerator
NONE 
SET 
NEGATE 
SECTION_SET 
SECTION_NEGATE 

Definition at line 750 of file argsman_tests.cpp.

Member Function Documentation

◆ ForEachMergeSetup()

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

Enumerate all possible test configurations.

Definition at line 755 of file argsman_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 )
inline

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

Definition at line 778 of file argsman_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ MAX_ACTIONS

int ArgsMergeTestingSetup::MAX_ACTIONS = 3
staticconstexpr

Max number of actions to sequence together. Can decrease this when debugging to make test results easier to understand.

Definition at line 748 of file argsman_tests.cpp.


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