Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
EnvTestingSetup Class Reference

Save the log level and the value of CreateSock and restore them when the test ends. More...

Inheritance diagram for EnvTestingSetup:
[legend]
Collaboration diagram for EnvTestingSetup:
[legend]

Public Member Functions

 EnvTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts opts={})
 
 ~EnvTestingSetup ()
 
- 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 ()
 

Private Attributes

const BCLog::Level m_prev_log_level
 
const decltype(CreateSockm_create_sock_orig
 

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

Save the log level and the value of CreateSock and restore them when the test ends.

Definition at line 22 of file i2p_tests.cpp.

Constructor & Destructor Documentation

◆ EnvTestingSetup()

EnvTestingSetup::EnvTestingSetup ( const ChainType  chainType = ChainType::MAIN,
TestOpts  opts = {} 
)
inlineexplicit

Definition at line 25 of file i2p_tests.cpp.

◆ ~EnvTestingSetup()

EnvTestingSetup::~EnvTestingSetup ( )
inline

Definition at line 34 of file i2p_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_create_sock_orig

const decltype(CreateSock) EnvTestingSetup::m_create_sock_orig
private

Definition at line 42 of file i2p_tests.cpp.

◆ m_prev_log_level

const BCLog::Level EnvTestingSetup::m_prev_log_level
private

Definition at line 41 of file i2p_tests.cpp.


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