Bitcoin Core  26.99.0
P2P Digital Currency
Classes | Functions
argsman_tests.cpp File Reference
#include <common/args.h>
#include <sync.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <test/util/str.h>
#include <univalue.h>
#include <util/chaintype.h>
#include <util/fs.h>
#include <util/strencodings.h>
#include <array>
#include <optional>
#include <cstdint>
#include <cstring>
#include <vector>
#include <boost/test/unit_test.hpp>
Include dependency graph for argsman_tests.cpp:

Go to the source code of this file.

Classes

struct  TestArgsManager
 
class  CheckValueTest
 Test GetSetting and GetArg type coercion, negation, and default value handling. More...
 
struct  CheckValueTest::Expect
 
struct  NoIncludeConfTest
 
struct  ArgsMergeTestingSetup
 
struct  ChainMergeTestingSetup
 

Functions

 BOOST_AUTO_TEST_CASE (util_datadir)
 
 BOOST_FIXTURE_TEST_CASE (util_CheckValue, CheckValueTest)
 
 BOOST_FIXTURE_TEST_CASE (util_NoIncludeConf, NoIncludeConfTest)
 
 BOOST_AUTO_TEST_CASE (util_ParseParameters)
 
 BOOST_AUTO_TEST_CASE (util_ParseInvalidParameters)
 
static void TestParse (const std::string &str, bool expected_bool, int64_t expected_int)
 
 BOOST_AUTO_TEST_CASE (util_ArgParsing)
 
 BOOST_AUTO_TEST_CASE (util_GetBoolArg)
 
 BOOST_AUTO_TEST_CASE (util_GetBoolArgEdgeCases)
 
 BOOST_AUTO_TEST_CASE (util_ReadConfigStream)
 
 BOOST_AUTO_TEST_CASE (util_GetArg)
 
 BOOST_AUTO_TEST_CASE (util_GetChainTypeString)
 
 BOOST_FIXTURE_TEST_CASE (util_ArgsMerge, ArgsMergeTestingSetup)
 
 BOOST_FIXTURE_TEST_CASE (util_ChainMerge, ChainMergeTestingSetup)
 
 BOOST_AUTO_TEST_CASE (util_ReadWriteSettings)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( util_ArgParsing  )

Definition at line 280 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( util_datadir  )

Definition at line 25 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( util_GetArg  )

Definition at line 602 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( util_GetBoolArg  )

Definition at line 319 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( util_GetBoolArgEdgeCases  )

Definition at line 360 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( util_GetChainTypeString  )

Definition at line 641 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( util_ParseInvalidParameters  )

Definition at line 244 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( util_ParseParameters  )

Definition at line 207 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( util_ReadConfigStream  )

Definition at line 413 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( util_ReadWriteSettings  )

Definition at line 1020 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( util_ArgsMerge  ,
ArgsMergeTestingSetup   
)

Definition at line 801 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( util_ChainMerge  ,
ChainMergeTestingSetup   
)

Definition at line 936 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( util_CheckValue  ,
CheckValueTest   
)

Definition at line 169 of file argsman_tests.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( util_NoIncludeConf  ,
NoIncludeConfTest   
)

Definition at line 200 of file argsman_tests.cpp.

Here is the call graph for this function:

◆ TestParse()

static void TestParse ( const std::string &  str,
bool  expected_bool,
int64_t  expected_int 
)
static

Definition at line 265 of file argsman_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: