Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Public Member Functions | List of all members
CheckValueTest Class Reference

Test GetSetting and GetArg type coercion, negation, and default value handling. More...

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

Classes

struct  Expect
 

Public Member Functions

void CheckValue (unsigned int flags, const char *arg, const Expect &expect)
 
- Public Member Functions inherited from TestChain100Setup
 TestChain100Setup (const std::vector< const char * > &extra_args={})
 
CBlock CreateAndProcessBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, CChainState *chainstate=nullptr)
 Create a new block with just given transactions, coinbase paying to scriptPubKey, and try to add it to the current chain. More...
 
CBlock CreateBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, CChainState &chainstate)
 Create a new block with just given transactions, coinbase paying to scriptPubKey. More...
 
void mineBlocks (int num_blocks)
 Mine a series of new blocks on the active chain. More...
 
CMutableTransaction CreateValidMempoolTransaction (CTransactionRef input_transaction, int input_vout, int input_height, CKey input_signing_key, CScript output_destination, CAmount output_amount=CAmount(1 *COIN), bool submit=true)
 Create a transaction and submit to the mempool. More...
 
- Public Member Functions inherited from TestingSetup
 TestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
- Public Member Functions inherited from ChainTestingSetup
 ChainTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
 ~ChainTestingSetup ()
 
- Public Member Functions inherited from BasicTestingSetup
 BasicTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
 ~BasicTestingSetup ()
 

Additional Inherited Members

- Public Attributes inherited from TestChain100Setup
std::vector< CTransactionRefm_coinbase_txns
 
CKey coinbaseKey
 
- Public Attributes inherited from BasicTestingSetup
ECCVerifyHandle globalVerifyHandle
 
NodeContext m_node
 
const fs::path m_path_root
 
ArgsManager m_args
 

Detailed Description

Test GetSetting and GetArg type coercion, negation, and default value handling.

Definition at line 257 of file util_tests.cpp.

Member Function Documentation

◆ CheckValue()

void CheckValueTest::CheckValue ( unsigned int  flags,
const char *  arg,
const Expect expect 
)
inline

Definition at line 282 of file util_tests.cpp.

Here is the call graph for this function:

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