![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <compressor.h>#include <script/script.h>#include <test/util/random.h>#include <test/util/setup_common.h>#include <cstdint>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Macros | |
| #define | NUM_MULTIPLES_UNIT 100000 |
| #define | NUM_MULTIPLES_CENT 10000 |
| #define | NUM_MULTIPLES_1BTC 10000 |
| #define | NUM_MULTIPLES_50BTC 420000 |
Functions | |
| static bool | TestEncode (uint64_t in) |
| static bool | TestDecode (uint64_t in) |
| static bool | TestPair (uint64_t dec, uint64_t enc) |
| BOOST_AUTO_TEST_CASE (compress_amounts) | |
| BOOST_AUTO_TEST_CASE (compress_script_to_ckey_id) | |
| BOOST_AUTO_TEST_CASE (compress_script_to_cscript_id) | |
| BOOST_AUTO_TEST_CASE (compress_script_to_compressed_pubkey_id) | |
| BOOST_AUTO_TEST_CASE (compress_script_to_uncompressed_pubkey_id) | |
| BOOST_AUTO_TEST_CASE (compress_p2pk_scripts_not_on_curve) | |
| #define NUM_MULTIPLES_1BTC 10000 |
Definition at line 21 of file compress_tests.cpp.
| #define NUM_MULTIPLES_50BTC 420000 |
Definition at line 24 of file compress_tests.cpp.
| #define NUM_MULTIPLES_CENT 10000 |
Definition at line 18 of file compress_tests.cpp.
| #define NUM_MULTIPLES_UNIT 100000 |
Definition at line 15 of file compress_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | compress_amounts | ) |
| BOOST_AUTO_TEST_CASE | ( | compress_p2pk_scripts_not_on_curve | ) |
| BOOST_AUTO_TEST_CASE | ( | compress_script_to_ckey_id | ) |
| BOOST_AUTO_TEST_CASE | ( | compress_script_to_compressed_pubkey_id | ) |
| BOOST_AUTO_TEST_CASE | ( | compress_script_to_cscript_id | ) |
| BOOST_AUTO_TEST_CASE | ( | compress_script_to_uncompressed_pubkey_id | ) |
|
static |
Definition at line 32 of file compress_tests.cpp.
|
static |
Definition at line 28 of file compress_tests.cpp.
|
static |
Definition at line 36 of file compress_tests.cpp.