![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <util/system.h>#include <clientversion.h>#include <hash.h>#include <key.h>#include <sync.h>#include <test/util/logging.h>#include <test/util/setup_common.h>#include <test/util/str.h>#include <uint256.h>#include <util/getuniquepath.h>#include <util/message.h>#include <util/moneystr.h>#include <util/spanparsing.h>#include <util/strencodings.h>#include <util/string.h>#include <util/time.h>#include <util/vector.h>#include <array>#include <optional>#include <stdint.h>#include <thread>#include <univalue.h>#include <utility>#include <vector>#include <signal.h>#include <sys/types.h>#include <sys/wait.h>#include <boost/test/unit_test.hpp>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 |
Namespaces | |
| namespace | BCLog |
Macros | |
| #define | B "check_prefix" |
| #define | E "check_postfix" |
Functions | |
| std::string | BCLog::LogEscapeMessage (const std::string &str) |
| Belts and suspenders: make sure outgoing log messages don't contain potentially suspicious characters, such as terminal control codes. More... | |
| BOOST_AUTO_TEST_CASE (util_datadir) | |
| BOOST_AUTO_TEST_CASE (util_check) | |
| BOOST_AUTO_TEST_CASE (util_criticalsection) | |
| BOOST_AUTO_TEST_CASE (util_ParseHex) | |
| BOOST_AUTO_TEST_CASE (util_HexStr) | |
| BOOST_AUTO_TEST_CASE (util_Join) | |
| BOOST_AUTO_TEST_CASE (util_TrimString) | |
| BOOST_AUTO_TEST_CASE (util_FormatParseISO8601DateTime) | |
| BOOST_AUTO_TEST_CASE (util_FormatISO8601Date) | |
| 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_GetChainName) | |
| BOOST_FIXTURE_TEST_CASE (util_ArgsMerge, ArgsMergeTestingSetup) | |
| BOOST_FIXTURE_TEST_CASE (util_ChainMerge, ChainMergeTestingSetup) | |
| BOOST_AUTO_TEST_CASE (util_ReadWriteSettings) | |
| BOOST_AUTO_TEST_CASE (util_FormatMoney) | |
| BOOST_AUTO_TEST_CASE (util_ParseMoney) | |
| BOOST_AUTO_TEST_CASE (util_IsHex) | |
| BOOST_AUTO_TEST_CASE (util_IsHexNumber) | |
| BOOST_AUTO_TEST_CASE (util_seed_insecure_rand) | |
| BOOST_AUTO_TEST_CASE (util_TimingResistantEqual) | |
| BOOST_AUTO_TEST_CASE (strprintf_numbers) | |
| BOOST_AUTO_TEST_CASE (gettime) | |
| BOOST_AUTO_TEST_CASE (util_time_GetTime) | |
| BOOST_AUTO_TEST_CASE (test_IsDigit) | |
| BOOST_AUTO_TEST_CASE (test_ParseInt32) | |
| template<typename T > | |
| static void | RunToIntegralTests () |
| BOOST_AUTO_TEST_CASE (test_ToIntegral) | |
| BOOST_AUTO_TEST_CASE (test_LocaleIndependentAtoi) | |
| BOOST_AUTO_TEST_CASE (test_ParseInt64) | |
| BOOST_AUTO_TEST_CASE (test_ParseUInt8) | |
| BOOST_AUTO_TEST_CASE (test_ParseUInt16) | |
| BOOST_AUTO_TEST_CASE (test_ParseUInt32) | |
| BOOST_AUTO_TEST_CASE (test_ParseUInt64) | |
| BOOST_AUTO_TEST_CASE (test_FormatParagraph) | |
| BOOST_AUTO_TEST_CASE (test_FormatSubVersion) | |
| BOOST_AUTO_TEST_CASE (test_ParseFixedPoint) | |
| static void | TestOtherThread (fs::path dirname, std::string lockname, bool *result) |
| static void | TestOtherProcess (fs::path dirname, std::string lockname, int fd) |
| BOOST_AUTO_TEST_CASE (test_LockDirectory) | |
| BOOST_AUTO_TEST_CASE (test_DirIsWritable) | |
| BOOST_AUTO_TEST_CASE (test_ToLower) | |
| BOOST_AUTO_TEST_CASE (test_ToUpper) | |
| BOOST_AUTO_TEST_CASE (test_Capitalize) | |
| static std::string | SpanToStr (const Span< const char > &span) |
| BOOST_AUTO_TEST_CASE (test_spanparsing) | |
| BOOST_AUTO_TEST_CASE (test_LogEscapeMessage) | |
| BOOST_AUTO_TEST_CASE (test_tracked_vector) | |
| BOOST_AUTO_TEST_CASE (message_sign) | |
| BOOST_AUTO_TEST_CASE (message_verify) | |
| BOOST_AUTO_TEST_CASE (message_hash) | |
| BOOST_AUTO_TEST_CASE (remove_prefix) | |
Variables | |
| static const std::string | STRING_WITH_EMBEDDED_NULL_CHAR {"1"s "\0" "1"s} |
| static const unsigned char | ParseHex_expected [65] |
| static constexpr char | LockCommand = 'L' |
| static constexpr char | UnlockCommand = 'U' |
| static constexpr char | ExitCommand = 'X' |
| #define B "check_prefix" |
Definition at line 1386 of file util_tests.cpp.
| #define E "check_postfix" |
Definition at line 1387 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | gettime | ) |
| BOOST_AUTO_TEST_CASE | ( | message_hash | ) |
| BOOST_AUTO_TEST_CASE | ( | message_sign | ) |
| BOOST_AUTO_TEST_CASE | ( | message_verify | ) |
| BOOST_AUTO_TEST_CASE | ( | remove_prefix | ) |
| BOOST_AUTO_TEST_CASE | ( | strprintf_numbers | ) |
Definition at line 1388 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_Capitalize | ) |
| BOOST_AUTO_TEST_CASE | ( | test_DirIsWritable | ) |
| BOOST_AUTO_TEST_CASE | ( | test_FormatParagraph | ) |
| BOOST_AUTO_TEST_CASE | ( | test_FormatSubVersion | ) |
| BOOST_AUTO_TEST_CASE | ( | test_IsDigit | ) |
| BOOST_AUTO_TEST_CASE | ( | test_LocaleIndependentAtoi | ) |
Definition at line 1580 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_LockDirectory | ) |
| BOOST_AUTO_TEST_CASE | ( | test_LogEscapeMessage | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseFixedPoint | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseInt32 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseInt64 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseUInt16 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseUInt32 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseUInt64 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ParseUInt8 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_spanparsing | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ToIntegral | ) |
Definition at line 1518 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_ToLower | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ToUpper | ) |
| BOOST_AUTO_TEST_CASE | ( | test_tracked_vector | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ArgParsing | ) |
| BOOST_AUTO_TEST_CASE | ( | util_check | ) |
Definition at line 75 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_criticalsection | ) |
Definition at line 88 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_datadir | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatISO8601Date | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatMoney | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatParseISO8601DateTime | ) |
| BOOST_AUTO_TEST_CASE | ( | util_GetArg | ) |
| BOOST_AUTO_TEST_CASE | ( | util_GetBoolArg | ) |
| BOOST_AUTO_TEST_CASE | ( | util_GetBoolArgEdgeCases | ) |
| BOOST_AUTO_TEST_CASE | ( | util_GetChainName | ) |
| BOOST_AUTO_TEST_CASE | ( | util_HexStr | ) |
| BOOST_AUTO_TEST_CASE | ( | util_IsHex | ) |
| BOOST_AUTO_TEST_CASE | ( | util_IsHexNumber | ) |
| BOOST_AUTO_TEST_CASE | ( | util_Join | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseHex | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseInvalidParameters | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseMoney | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseParameters | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ReadConfigStream | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ReadWriteSettings | ) |
| BOOST_AUTO_TEST_CASE | ( | util_seed_insecure_rand | ) |
| BOOST_AUTO_TEST_CASE | ( | util_time_GetTime | ) |
| BOOST_AUTO_TEST_CASE | ( | util_TimingResistantEqual | ) |
| BOOST_AUTO_TEST_CASE | ( | util_TrimString | ) |
| BOOST_FIXTURE_TEST_CASE | ( | util_ArgsMerge | , |
| ArgsMergeTestingSetup | |||
| ) |
| BOOST_FIXTURE_TEST_CASE | ( | util_ChainMerge | , |
| ChainMergeTestingSetup | |||
| ) |
| BOOST_FIXTURE_TEST_CASE | ( | util_CheckValue | , |
| CheckValueTest | |||
| ) |
Definition at line 329 of file util_tests.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | util_NoIncludeConf | , |
| NoIncludeConfTest | |||
| ) |
|
static |
Definition at line 1490 of file util_tests.cpp.
|
static |
Definition at line 2106 of file util_tests.cpp.
|
static |
Definition at line 1939 of file util_tests.cpp.
|
static |
Definition at line 1929 of file util_tests.cpp.
|
static |
Definition at line 425 of file util_tests.cpp.
|
staticconstexpr |
Definition at line 1937 of file util_tests.cpp.
|
staticconstexpr |
Definition at line 1935 of file util_tests.cpp.
|
static |
Definition at line 110 of file util_tests.cpp.
|
static |
Definition at line 41 of file util_tests.cpp.
|
staticconstexpr |
Definition at line 1936 of file util_tests.cpp.