Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Functions
settings_tests.cpp File Reference
#include <common/settings.h>
#include <test/util/setup_common.h>
#include <test/util/str.h>
#include <boost/test/unit_test.hpp>
#include <common/args.h>
#include <univalue.h>
#include <util/chaintype.h>
#include <util/fs.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <fstream>
#include <map>
#include <string>
#include <system_error>
#include <vector>
Include dependency graph for settings_tests.cpp:

Go to the source code of this file.

Classes

struct  MergeTestingSetup
 

Functions

bool operator== (const common::SettingsValue &a, const common::SettingsValue &b)
 
std::ostream & operator<< (std::ostream &os, const common::SettingsValue &value)
 
std::ostream & operator<< (std::ostream &os, const std::pair< std::string, common::SettingsValue > &kv)
 
void WriteText (const fs::path &path, const std::string &text)
 
 BOOST_AUTO_TEST_CASE (ReadWrite)
 
static void CheckValues (const common::Settings &settings, const std::string &single_val, const std::string &list_val)
 Check settings struct contents against expected json strings. More...
 
 BOOST_AUTO_TEST_CASE (Simple)
 
 BOOST_AUTO_TEST_CASE (NullOverride)
 
 BOOST_FIXTURE_TEST_CASE (Merge, MergeTestingSetup)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( NullOverride  )

Definition at line 143 of file settings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( ReadWrite  )

Definition at line 52 of file settings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( Simple  )

Definition at line 121 of file settings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( Merge  ,
MergeTestingSetup   
)

Definition at line 186 of file settings_tests.cpp.

Here is the call graph for this function:

◆ CheckValues()

static void CheckValues ( const common::Settings settings,
const std::string &  single_val,
const std::string &  list_val 
)
static

Check settings struct contents against expected json strings.

Definition at line 109 of file settings_tests.cpp.

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

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const common::SettingsValue value 
)
inline

Definition at line 29 of file settings_tests.cpp.

Here is the call graph for this function:

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const std::pair< std::string, common::SettingsValue > &  kv 
)
inline

Definition at line 35 of file settings_tests.cpp.

◆ operator==()

bool operator== ( const common::SettingsValue a,
const common::SettingsValue b 
)
inline

Definition at line 24 of file settings_tests.cpp.

Here is the call graph for this function:

◆ WriteText()

void WriteText ( const fs::path path,
const std::string &  text 
)
inline

Definition at line 43 of file settings_tests.cpp.

Here is the caller graph for this function: