monero/tests/unit_tests
moneromooo-monero 21777daf6e
epee: speedup word/number matching
Number matching semantics are slightly changed: since this is used
as a filter to check whether a number is signed and/or floating
point, we can speed this up further. strto* functions are called
afterwards and will error out where necessary. We now also accept
numbers like .4 which were not accepted before.

The strto* calls on a boost::string_ref will not access unallocated
memory since the parsers always stop at the first bad character,
and the original string is zero terminated.

in arbitrary time measurement units for some arbitrary test case:

match_number2: 235 -> 70
match_word2: 330 -> 108
2019-01-16 19:59:40 +00:00
..
account.cpp store secret keys encrypted where possible 2018-08-16 11:57:43 +00:00
address_from_url.cpp unit_tests: fix longstanding DNS related unit test 2018-09-28 15:28:38 +00:00
aligned.cpp unit_tests: add unit test for alloc alignment being a power of 2 2018-10-08 11:36:42 +00:00
apply_permutation.cpp
ban.cpp protocol: option to pad transaction relay to the next kB 2018-11-06 15:47:05 +00:00
base58.cpp Stagenet 2018-03-05 11:55:05 +09:00
block_queue.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
block_reward.cpp v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
blockchain_db.cpp v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
bulletproofs.cpp unit_tests: sanity check on transaction weight 2018-09-15 16:14:38 +00:00
canonical_amounts.cpp
chacha.cpp
checkpoints.cpp
CMakeLists.txt Merge pull request #4832 2018-11-26 20:29:53 +02:00
command_line.cpp
crypto.cpp unit_tests: don't take the address of an unwrapped secret key 2018-11-16 19:36:02 +00:00
decompose_amount_into_digits.cpp
device.cpp unit_tests: add device unit tests 2018-04-12 13:49:05 +01:00
dns_resolver.cpp dns: change default DNS to a worldwide selection 2018-02-08 09:46:16 +00:00
epee_boosted_tcp_server.cpp
epee_levin_protocol_handler_async.cpp epee: better network buffer data structure 2018-12-23 16:46:07 +00:00
epee_utils.cpp epee: speedup word/number matching 2019-01-16 19:59:40 +00:00
expect.cpp Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
fee.cpp v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
get_xtype_from_string.cpp
hardfork.cpp tests: add unit tests for get_output_distribution 2018-11-16 19:21:45 +00:00
hashchain.cpp
http.cpp
is_hdd.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00
json_serialization.cpp bulletproofs: add multi output bulletproofs to rct 2018-09-11 13:37:28 +00:00
keccak.cpp tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits 2018-10-29 08:20:15 +03:00
logging.cpp unit_tests: add logging unit test 2018-11-09 16:57:03 +00:00
main.cpp Merge pull request #4459 2018-09-29 22:20:38 +02:00
memwipe.cpp
mlocker.cpp Merge pull request #4459 2018-09-29 22:20:38 +02:00
mnemonics.cpp remove some unused code 2018-11-23 15:37:36 +00:00
mul_div.cpp move int-util.h to epee 2018-12-04 15:14:29 +00:00
multiexp.cpp unit_tests: add a few more multiexp unit tests 2018-09-11 13:38:19 +00:00
multisig.cpp remove some unused code 2018-11-23 15:37:36 +00:00
notify.cpp Merge pull request #4941 2018-12-31 15:48:52 -06:00
output_distribution.cpp tests: add unit tests for get_output_distribution 2018-11-16 19:21:45 +00:00
output_selection.cpp
parse_amount.cpp
random.cpp crypto: remove slight bias in key generation due to modulo 2018-07-05 09:18:01 +01:00
ringct.cpp remove some unused code 2018-11-23 15:37:36 +00:00
ringdb.cpp Rename "blackball" for clarity 2018-10-18 18:45:45 +00:00
serialization.cpp simplewallet: print the number of show/all transfers 2018-11-04 22:27:05 +00:00
sha256.cpp
slow_memmem.cpp tests: slow_memmem now returns size_t 2018-11-23 15:36:48 +00:00
subaddress.cpp unit_tests: do not rethrow a copy of an exception 2018-11-23 15:38:00 +00:00
test_notifier.cpp unit_tests: add a notifier test 2018-10-01 09:14:20 +00:00
test_peerlist.cpp p2p: use vector instead of list for peer lists 2018-12-07 13:20:34 +00:00
test_protocol_pack.cpp
test_tx_utils.cpp cryptonote: sort tx_extra fields 2018-10-07 11:13:22 +00:00
testdb.h Merge pull request #4984 2019-01-16 19:06:07 +02:00
threadpool.cpp threadpool: allow leaf functions to run concurrently 2018-06-26 22:15:22 +01:00
unbound.cpp
unit_tests_utils.h unit_tests: added gtest utility ASSERT_EQ_MAP for easily testing key-value map 2018-02-12 21:56:36 +09:00
uri.cpp Stagenet 2018-03-05 11:55:05 +09:00
varint.cpp
vercmp.cpp
wipeable_string.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00