mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
47a527509d
Removed a pointless declaration of a function in lan_discovery_test and cleaned up the one error message there. Did an entire restructuring of the version_test using macros that resulted in fewer lines of code but more thorough testing. Formatting of version_test.c back to old way, save comments and one change Missing space My greatest enemy Add `#include <cstdio>` for `std::printf`. Make tox.c unambiguously parseable. Rules: 1. Constants are uppercase names: THE_CONSTANT. 2. SUE[1] types start with an uppercase letter and have at least one lowercase letter in it: The_Type, THE_Type. 3. Function types end in "_cb": tox_friend_connection_cb. 4. Variable and function names are all lowercase: the_function. This makes it easier for humans reading the code to determine what an identifier means. I'm not convinced by the enum type name change, but I don't know a better rule. Currently, a lot of enum types are spelled like constants, which is confusing. [1] struct/union/enum Use run_auto_test.h test fixture for some auto-tests. Most of the auto-tests should use this fixture, but I've only done a few to set an example. |
||
---|---|---|
.. | ||
bootstrap_test.c | ||
BUILD.bazel | ||
check_compat.h | ||
conference_double_invite_test.c | ||
conference_test.c | ||
conference_two_test.c | ||
crypto_test.c | ||
dht_test.c | ||
encryptsave_test.c | ||
file_saving_test.c | ||
file_transfer_test.c | ||
friend_connection_test.c | ||
friend_request_test.c | ||
helpers.h | ||
invalid_proxy_test.c | ||
invalid_tcp_proxy_test.c | ||
lan_discovery_test.c | ||
lossless_packet_test.c | ||
lossy_packet_test.c | ||
Makefile.inc | ||
messenger_test.c | ||
monolith_test.cc | ||
network_test.c | ||
onion_test.c | ||
overflow_recvq_test.c | ||
overflow_sendq_test.c | ||
run_auto_test.h | ||
save_friend_test.c | ||
save_load_test.c | ||
send_message_test.c | ||
set_name_test.c | ||
set_status_message_test.c | ||
simple_conference_test.c | ||
skeleton_test.c | ||
tcp_relay_test.c | ||
TCP_test.c | ||
tox_many_tcp_test.c | ||
tox_many_test.c | ||
tox_one_test.c | ||
tox_strncasecmp_test.c | ||
toxav_basic_test.c | ||
toxav_many_test.c | ||
typing_test.c | ||
version_test.c |