Bitcoin Core 28.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 282 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 27 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 604 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 321 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 362 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 643 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 246 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 209 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 415 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 1030 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 811 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 946 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 171 of file argsman_tests.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( util_NoIncludeConf  ,
NoIncludeConfTest   
)

Definition at line 202 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 267 of file argsman_tests.cpp.

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