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:

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 262 of file util_tests.cpp.

Constructor & Destructor Documentation

◆ Expect()

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

Definition at line 273 of file util_tests.cpp.

Member Function Documentation

◆ Bool()

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

Definition at line 279 of file util_tests.cpp.

◆ DefaultBool()

Expect& CheckValueTest::Expect::DefaultBool ( )

Definition at line 276 of file util_tests.cpp.

◆ DefaultInt()

Expect& CheckValueTest::Expect::DefaultInt ( )

Definition at line 275 of file util_tests.cpp.

◆ DefaultString()

Expect& CheckValueTest::Expect::DefaultString ( )

Definition at line 274 of file util_tests.cpp.

◆ Error()

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

Definition at line 281 of file util_tests.cpp.

Here is the call graph for this function:

◆ Int()

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

Definition at line 278 of file util_tests.cpp.

◆ List()

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

Definition at line 280 of file util_tests.cpp.

◆ String()

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

Definition at line 277 of file util_tests.cpp.

Member Data Documentation

◆ bool_value

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

Definition at line 269 of file util_tests.cpp.

◆ default_bool

bool CheckValueTest::Expect::default_bool = false

Definition at line 266 of file util_tests.cpp.

◆ default_int

bool CheckValueTest::Expect::default_int = false

Definition at line 265 of file util_tests.cpp.

◆ default_string

bool CheckValueTest::Expect::default_string = false

Definition at line 264 of file util_tests.cpp.

◆ error

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

Definition at line 271 of file util_tests.cpp.

◆ int_value

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

Definition at line 268 of file util_tests.cpp.

◆ list_value

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

Definition at line 270 of file util_tests.cpp.

◆ setting

util::SettingsValue CheckValueTest::Expect::setting

Definition at line 263 of file util_tests.cpp.

◆ string_value

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

Definition at line 267 of file util_tests.cpp.

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