![]() |
Bitcoin Core
28.1.0
P2P Digital Currency
|
#include <clientversion.h>#include <common/signmessage.h>#include <hash.h>#include <key.h>#include <script/parsing.h>#include <sync.h>#include <test/util/random.h>#include <test/util/setup_common.h>#include <uint256.h>#include <util/bitdeque.h>#include <util/fs.h>#include <util/fs_helpers.h>#include <util/moneystr.h>#include <util/overflow.h>#include <util/readwritefile.h>#include <util/strencodings.h>#include <util/string.h>#include <util/time.h>#include <util/vector.h>#include <array>#include <cmath>#include <fstream>#include <limits>#include <map>#include <optional>#include <stdint.h>#include <thread>#include <univalue.h>#include <utility>#include <vector>#include <sys/types.h>#include <signal.h>#include <sys/wait.h>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Namespaces | |
| BCLog | |
Macros | |
| #define | B "check_prefix" |
| #define | E "check_postfix" |
Enumerations | |
| enum | : char { ResSuccess = 2, ResErrorWrite, ResErrorLock, ResUnlockSuccess } |
Functions | |
| std::string | BCLog::LogEscapeMessage (std::string_view 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_check) | |
| BOOST_AUTO_TEST_CASE (util_criticalsection) | |
| BOOST_AUTO_TEST_CASE (parse_hex) | |
| BOOST_AUTO_TEST_CASE (util_HexStr) | |
| BOOST_AUTO_TEST_CASE (span_write_bytes) | |
| BOOST_AUTO_TEST_CASE (util_Join) | |
| BOOST_AUTO_TEST_CASE (util_ReplaceAll) | |
| BOOST_AUTO_TEST_CASE (util_TrimString) | |
| BOOST_AUTO_TEST_CASE (util_FormatISO8601DateTime) | |
| BOOST_AUTO_TEST_CASE (util_FormatISO8601Date) | |
| 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) | |
| template<typename T > | |
| static void | TestAddMatrixOverflow () |
| template<typename T > | |
| static void | TestAddMatrix () |
| BOOST_AUTO_TEST_CASE (util_overflow) | |
| BOOST_AUTO_TEST_CASE (test_ParseInt32) | |
| template<typename T > | |
| static void | RunToIntegralTests () |
| BOOST_AUTO_TEST_CASE (test_ToIntegral) | |
| int64_t | atoi64_legacy (const std::string &str) |
| 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 | TestOtherProcess (fs::path dirname, fs::path lockname, int fd) |
| BOOST_AUTO_TEST_CASE (test_LockDirectory) | |
| 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_script_parsing) | |
| BOOST_AUTO_TEST_CASE (test_SplitString) | |
| 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) | |
| BOOST_AUTO_TEST_CASE (util_ParseByteUnits) | |
| BOOST_AUTO_TEST_CASE (util_ReadBinaryFile) | |
| BOOST_AUTO_TEST_CASE (util_WriteBinaryFile) | |
| BOOST_AUTO_TEST_CASE (clearshrink_test) | |
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 498 of file util_tests.cpp.
| #define E "check_postfix" |
Definition at line 499 of file util_tests.cpp.
| anonymous enum : char |
| Enumerator | |
|---|---|
| ResSuccess | |
| ResErrorWrite | |
| ResErrorLock | |
| ResUnlockSuccess | |
Definition at line 1126 of file util_tests.cpp.
| int64_t atoi64_legacy | ( | const std::string & | str | ) |
| BOOST_AUTO_TEST_CASE | ( | util_check | ) |
Definition at line 91 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_criticalsection | ) |
Definition at line 117 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | parse_hex | ) |
| BOOST_AUTO_TEST_CASE | ( | util_HexStr | ) |
| BOOST_AUTO_TEST_CASE | ( | span_write_bytes | ) |
| BOOST_AUTO_TEST_CASE | ( | util_Join | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ReplaceAll | ) |
| BOOST_AUTO_TEST_CASE | ( | util_TrimString | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatISO8601DateTime | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatISO8601Date | ) |
| BOOST_AUTO_TEST_CASE | ( | util_FormatMoney | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseMoney | ) |
| BOOST_AUTO_TEST_CASE | ( | util_IsHex | ) |
Definition at line 420 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_IsHexNumber | ) |
Definition at line 435 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_seed_insecure_rand | ) |
Definition at line 460 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_TimingResistantEqual | ) |
Definition at line 485 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | strprintf_numbers | ) |
Definition at line 500 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | gettime | ) |
Definition at line 526 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_time_GetTime | ) |
Definition at line 531 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_IsDigit | ) |
Definition at line 560 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_overflow | ) |
Definition at line 617 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_ParseInt32 | ) |
Definition at line 623 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_ToIntegral | ) |
Definition at line 686 of file util_tests.cpp.
| 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 | ) |
| BOOST_AUTO_TEST_CASE | ( | test_LockDirectory | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ToLower | ) |
| BOOST_AUTO_TEST_CASE | ( | test_ToUpper | ) |
| BOOST_AUTO_TEST_CASE | ( | test_Capitalize | ) |
| BOOST_AUTO_TEST_CASE | ( | test_script_parsing | ) |
| BOOST_AUTO_TEST_CASE | ( | test_SplitString | ) |
| 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 | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ParseByteUnits | ) |
| BOOST_AUTO_TEST_CASE | ( | util_ReadBinaryFile | ) |
Definition at line 1764 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | util_WriteBinaryFile | ) |
Definition at line 1797 of file util_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | clearshrink_test | ) |
Definition at line 1810 of file util_tests.cpp.
|
static |
Definition at line 658 of file util_tests.cpp.
|
static |
Definition at line 1299 of file util_tests.cpp.
|
static |
Definition at line 597 of file util_tests.cpp.
|
static |
Definition at line 577 of file util_tests.cpp.
Definition at line 1133 of file util_tests.cpp.
|
static |
Definition at line 1125 of file util_tests.cpp.
|
static |
Definition at line 1123 of file util_tests.cpp.
|
static |
Definition at line 139 of file util_tests.cpp.
|
static |
Definition at line 57 of file util_tests.cpp.
|
static |
Definition at line 1124 of file util_tests.cpp.
1.8.14