Declarations useful for the unit tests. More...
#include "util/log.h"| Macros | |
| #define | unit_assert(x) do {testcount++; if(!(x)) { fprintf(stderr, "assertion failure %s:%d\n", __FILE__, __LINE__); exit(1);}} while(0) | 
| test bool x, exits on failure, increases testcount. | |
| Functions | |
| void | unit_show_func (const char *file, const char *func) | 
| we are now testing this function | |
| void | unit_show_feature (const char *feature) | 
| we are testing this functionality | |
| void | lruhash_test (void) | 
| unit test lruhashtable implementation | |
| void | slabhash_test (void) | 
| unit test slabhashtable implementation | |
| void | msgparse_test (void) | 
| unit test for msgreply and msgparse | |
| void | dname_test (void) | 
| unit test dname handling functions | |
| void | anchors_test (void) | 
| unit test trust anchor storage functions | |
| void | verify_test (void) | 
| unit test for verification functions | |
| void | neg_test (void) | 
| unit test for negative cache functions | |
| void | regional_test (void) | 
| unit test for regional allocator functions | |
| void | ldns_test (void) | 
| unit test for ldns functions | |
| void | authzone_test (void) | 
| unit test for auth zone functions | |
| void | zonemd_test (void) | 
| unit test for zonemd functions | |
| void | tcpreuse_test (void) | 
| unit test for tcp_reuse functions | |
| void | doq_test (void) | 
| unit test for doq functions | |
| void | infra_test (void) | 
| unit test for infra cache functions | |
| Variables | |
| int | testcount | 
| number of tests done | |
Declarations useful for the unit tests.
| void authzone_test | ( | void | ) | 
unit test for auth zone functions
unit test for auth zone functions
References authzone_compare_serial(), authzone_query_test(), authzone_read_test(), tmpfilecleanup(), and unit_show_feature().
Referenced by main().
| void zonemd_test | ( | void | ) | 
unit test for zonemd functions
unit test for zonemd functions
References unit_show_feature(), zonemd_check_test(), zonemd_generate_tests(), and zonemd_verify_tests().
Referenced by main().
| void infra_test | ( | void | ) | 
unit test for infra cache functions
unit test for infra cache functions
References config_apply_max_rtt(), config_auto_slab_values(), config_create(), config_delete(), infra_data::edns_version, infra_key::entry, config_file::host_ttl, infra_create(), infra_delete(), infra_edns_update(), infra_host(), infra_rtt_update(), infra_set_lame(), ipstrtoaddr(), infra_data::isdnsseclame, infra_data::lame_other, infra_data::lame_type_A, LDNS_RR_TYPE_A, LDNS_RR_TYPE_AAAA, lruhash_entry::lock, infra_data::rec_lame, infra_data::ttl, unit_assert, unit_show_feature(), UNKNOWN_SERVER_NICENESS, and USEFUL_SERVER_TOP_TIMEOUT.
Referenced by main().