tor/src/test
teor 6d54bdbdcf Handle edge cases in laplace functions
Avoid division by zero.
Avoid taking the log of zero.
Silence clang type conversion warnings using round and trunc.
The existing values returned by the laplace functions do not change.

Add tests for laplace edge cases.
These changes pass the existing unit tests without modification.

Related to HS stats in #13192.
2015-05-06 18:05:15 +10:00
..
bench.c Merge remote-tracking branch 'public/bug9635_warnings_025' 2015-02-02 16:31:32 -05:00
bt_test.py Integrate backtrace test into the automake test suite. 2015-04-23 09:56:25 -04:00
ed25519_exts_ref.py Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
ed25519_vectors.inc Add comments to ed25519_vectors.inc 2014-09-25 15:08:32 -04:00
example_extrainfo.inc Unit tests for 11243: loading ri, ei, mds from lists 2014-10-13 14:30:02 -04:00
failing_routerdescs.inc Base tests for 11243: test parsing for md, ei, and ri. 2014-10-13 14:30:02 -04:00
fakechans.h Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
include.am Fix another test failure 2015-04-28 10:47:37 -04:00
Makefile.nmake Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
ntor_ref.py Collect badness values in ntor_ref.py; don't just clobber. 2015-04-09 11:57:55 -04:00
slow_ed25519.py Add a reference implementation of our ed25519 modifications 2014-09-25 15:08:32 -04:00
slownacl_curve25519.py Make the python test scripts work on python3 2014-04-27 22:54:24 -04:00
test_accounting.c Avoid frequent strcmp() calls for AccountingRule 2014-09-29 09:05:11 -04:00
test_addr.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_address.c Use correct severity in the get_if_addrs tests. 2015-04-21 16:42:07 +00:00
test_bt_cl.c Fix crash-test for assertion failure 2015-04-23 10:25:16 -04:00
test_bt.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test_buffers.c Remove mempools and buf freelists 2015-02-11 09:03:50 -05:00
test_cell_formats.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_cell_queue.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_channel.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_channeltls.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_checkdir.c Fix the checkdir/perms test when umask==077 2015-01-15 10:24:27 -05:00
test_circuitlist.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_circuitmux.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_config.c Unit tests for consider_adding_dir_servers() as modified in #15642 2015-04-23 00:16:04 +10:00
test_containers.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_controller_events.c Add unit tests for control_event_is_interesting() 2015-03-22 14:24:41 +11:00
test_controller.c Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller. 2015-04-28 10:19:08 -04:00
test_crypto_slow.c whitespace fixes 2015-01-23 11:18:28 -05:00
test_crypto.c Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller. 2015-04-28 10:19:08 -04:00
test_data.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_descriptors.inc Move test_descriptors.txt to an include file 2014-07-16 22:37:00 +02:00
test_dir.c Fix check-spaces complaints 2015-02-06 21:36:40 +01:00
test_entryconn.c Make check-spaces happier. 2015-01-19 11:56:03 -05:00
test_entrynodes.c Update entrynodes unit test for dirs 2015-04-01 21:10:39 +02:00
test_extorport.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_guardfraction.c clean up comments and whitespace a bit 2015-02-18 19:27:02 -05:00
test_helpers.c whitespace fixes 2015-02-18 10:55:56 -05:00
test_helpers.h Combine test_helpers.[ch] and testhelper.[ch] 2015-02-18 09:19:38 -05:00
test_hs.c Test: fix HSFETCH control command with latest change 2015-04-21 14:22:54 -04:00
test_introduce.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_logging.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_microdesc.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_nodelist.c Merge remote-tracking branch 'public/ticket9969' 2015-01-23 09:36:00 -05:00
test_ntor_cl.c Merge remote-tracking branch 'public/bug9635_warnings_025' 2015-02-02 16:31:32 -05:00
test_ntor.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test_oom.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_options.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_policy.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_pt.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_relay.c Remove lingering mempool code 2015-02-23 11:19:31 -05:00
test_relaycell.c Merge branch 'bug8546_squashed' 2015-01-16 09:31:50 -05:00
test_replay.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_routerkeys.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_routerlist.c whitespace fixes 2015-01-23 11:18:28 -05:00
test_routerset.c Replace operators used as macro arguments with OP_XX macros 2014-11-12 13:28:07 -05:00
test_scheduler.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_slow.c Split the slow unit tests into their own binary 2015-01-23 11:15:53 -05:00
test_socks.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test_status.c Merge remote-tracking branch 'public/feature15212_026' into maint-0.2.6 2015-03-12 13:15:08 -04:00
test_threads.c Fix: change copyright year in workqueue and thread tests 2015-01-21 14:31:02 -05:00
test_util_slow.c Implement "TOR_PT_EXIT_ON_STDIN_CLOSE". 2015-03-26 12:55:12 +00:00
test_util.c Handle edge cases in laplace functions 2015-05-06 18:05:15 +10:00
test_workqueue.c Put an upper bound on test_workqueue -I argument 2015-03-24 10:49:29 -04:00
test_zero_length_keys.sh.in Revert "Add +x to these .in files; see if it helps" 2015-04-24 16:05:41 -04:00
test-child.c Bump copyright dates to 2015, in case someday this matters. 2015-01-02 14:27:39 -05:00
test-memwipe.c Add missing newline in memwipe test. 2015-04-30 12:15:34 -04:00
test-network.sh Fix test-network.sh argument parsing 2015-03-22 09:43:50 +01:00
test.c Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller. 2015-04-28 10:19:08 -04:00
test.h Update test_status.c to accommodate changes in heartbeat messages 2015-02-24 10:05:34 -05:00
testing_common.c Remove DynamicDHGroups as obsoleted by PluggableTransports or P256. 2015-03-14 12:40:55 -04:00
zero_length_keys.sh Integrate zero_length_keys test into the automake test suite. 2015-04-23 09:56:12 -04:00