Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CheckValueTest::Expect Struct Reference
Collaboration diagram for CheckValueTest::Expect:
[legend]

Public Member Functions

 Expect (util::SettingsValue s)
 
ExpectDefaultString ()
 
ExpectDefaultInt ()
 
ExpectDefaultBool ()
 
ExpectString (const char *s)
 
ExpectInt (int64_t i)
 
ExpectBool (bool b)
 
ExpectList (std::vector< std::string > m)
 
ExpectError (const char *e)
 

Public Attributes

util::SettingsValue setting
 
bool default_string = false
 
bool default_int = false
 
bool default_bool = false
 
const char * string_value = nullptr
 
std::optional< int64_t > int_value
 
std::optional< bool > bool_value
 
std::optional< std::vector< std::string > > list_value
 
const char * error = nullptr
 

Detailed Description

Definition at line 247 of file util_tests.cpp.

Constructor & Destructor Documentation

◆ Expect()

CheckValueTest::Expect::Expect ( util::SettingsValue  s)
inlineexplicit

Definition at line 258 of file util_tests.cpp.

Member Function Documentation

◆ Bool()

Expect& CheckValueTest::Expect::Bool ( bool  b)
inline

Definition at line 264 of file util_tests.cpp.

◆ DefaultBool()

Expect& CheckValueTest::Expect::DefaultBool ( )
inline

Definition at line 261 of file util_tests.cpp.

◆ DefaultInt()

Expect& CheckValueTest::Expect::DefaultInt ( )
inline

Definition at line 260 of file util_tests.cpp.

◆ DefaultString()

Expect& CheckValueTest::Expect::DefaultString ( )
inline

Definition at line 259 of file util_tests.cpp.

◆ Error()

Expect& CheckValueTest::Expect::Error ( const char *  e)
inline

Definition at line 266 of file util_tests.cpp.

Here is the call graph for this function:

◆ Int()

Expect& CheckValueTest::Expect::Int ( int64_t  i)
inline

Definition at line 263 of file util_tests.cpp.

◆ List()

Expect& CheckValueTest::Expect::List ( std::vector< std::string >  m)
inline

Definition at line 265 of file util_tests.cpp.

◆ String()

Expect& CheckValueTest::Expect::String ( const char *  s)
inline

Definition at line 262 of file util_tests.cpp.

Member Data Documentation

◆ bool_value

std::optional<bool> CheckValueTest::Expect::bool_value

Definition at line 254 of file util_tests.cpp.

◆ default_bool

bool CheckValueTest::Expect::default_bool = false

Definition at line 251 of file util_tests.cpp.

◆ default_int

bool CheckValueTest::Expect::default_int = false

Definition at line 250 of file util_tests.cpp.

◆ default_string

bool CheckValueTest::Expect::default_string = false

Definition at line 249 of file util_tests.cpp.

◆ error

const char* CheckValueTest::Expect::error = nullptr

Definition at line 256 of file util_tests.cpp.

◆ int_value

std::optional<int64_t> CheckValueTest::Expect::int_value

Definition at line 253 of file util_tests.cpp.

◆ list_value

std::optional<std::vector<std::string> > CheckValueTest::Expect::list_value

Definition at line 255 of file util_tests.cpp.

◆ setting

util::SettingsValue CheckValueTest::Expect::setting

Definition at line 248 of file util_tests.cpp.

◆ string_value

const char* CheckValueTest::Expect::string_value = nullptr

Definition at line 252 of file util_tests.cpp.


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