Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Functions
settings_tests.cpp File Reference
#include <util/settings.h>
#include <test/util/setup_common.h>
#include <test/util/str.h>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/system.h>
#include <vector>
Include dependency graph for settings_tests.cpp:

Go to the source code of this file.

Classes

struct  MergeTestingSetup
 

Functions

bool operator== (const util::SettingsValue &a, const util::SettingsValue &b)
 
std::ostream & operator<< (std::ostream &os, const util::SettingsValue &value)
 
std::ostream & operator<< (std::ostream &os, const std::pair< std::string, util::SettingsValue > &kv)
 
void WriteText (const fs::path &path, const std::string &text)
 
 BOOST_AUTO_TEST_CASE (ReadWrite)
 
static void CheckValues (const util::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 134 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 46 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 112 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 177 of file settings_tests.cpp.

Here is the call graph for this function:

◆ CheckValues()

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

Check settings struct contents against expected json strings.

Definition at line 100 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 std::pair< std::string, util::SettingsValue > &  kv 
)
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 util::SettingsValue value 
)
inline

Definition at line 23 of file settings_tests.cpp.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 18 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 37 of file settings_tests.cpp.

Here is the caller graph for this function: