Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Static Public Attributes | List of all members
ChainMergeTestingSetup Struct Reference
Inheritance diagram for ChainMergeTestingSetup:
[legend]
Collaboration diagram for ChainMergeTestingSetup:
[legend]

Public Types

enum  Action {
  NONE , ENABLE_TEST , DISABLE_TEST , NEGATE_TEST ,
  ENABLE_REG , DISABLE_REG , NEGATE_REG
}
 
using ActionList = Action[MAX_ACTIONS]
 

Public Member Functions

template<typename Fn >
void ForEachMergeSetup (Fn &&fn)
 Enumerate all possible test configurations. More...
 
- 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. More...
 
 BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={})
 
 ~BasicTestingSetup ()
 

Static Public Attributes

static constexpr int MAX_ACTIONS = 2
 

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. More...
 

Detailed Description

Definition at line 928 of file argsman_tests.cpp.

Member Typedef Documentation

◆ ActionList

Definition at line 932 of file argsman_tests.cpp.

Member Enumeration Documentation

◆ Action

Enumerator
NONE 
ENABLE_TEST 
DISABLE_TEST 
NEGATE_TEST 
ENABLE_REG 
DISABLE_REG 
NEGATE_REG 

Definition at line 931 of file argsman_tests.cpp.

Member Function Documentation

◆ ForEachMergeSetup()

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

Enumerate all possible test configurations.

Definition at line 936 of file argsman_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ MAX_ACTIONS

constexpr int ChainMergeTestingSetup::MAX_ACTIONS = 2
staticconstexpr

Definition at line 929 of file argsman_tests.cpp.


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