unbound
0.1
|
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. More... | |
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 More... | |
Variables | |
int | testcount |
number of tests done | |
Declarations useful for the unit tests.
#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.
Referenced by add_item(), alloc_test(), anchors_test(), buf_to_hex(), burden_test(), check_data(), check_lru(), check_lru_table(), check_neg_invariants(), check_read_exact(), check_table(), check_the_rrsigs(), check_zone_invariants(), config_memsize_test(), config_tag_test(), corner_cases(), dname_test(), dname_test_canoncmp(), dname_test_count_labels(), dname_test_count_size_labels(), dname_test_dname_lab_cmp(), dname_test_isroot(), dname_test_iswild(), dname_test_pkt_dname_len(), dname_test_qdl(), dname_test_qdtl(), dname_test_query_dname_compare(), dname_test_removelabel(), dname_test_sigcount(), dname_test_strict_subdomain(), dname_test_subdomain(), dname_test_topdomain(), dname_test_valid(), entry_to_buf(), entry_to_repinfo(), infra_test(), neg_test(), net_test(), nsectest(), q_ans_query(), respip_conf_data_test(), respip_view_conf_data_test(), rnd_test(), rr_checks(), rtt_test(), specific_cases(), stress_test(), test_anchor_empty(), test_anchor_one(), test_anchors(), test_bin_find_entry(), test_buffers(), test_long_table(), test_lru(), test_short_table(), test_thr_main(), testlookup(), testlookup_unlim(), verify_respip_set_actions(), verify_rrset(), and verifytest_rrset().
void authzone_test | ( | void | ) |
unit test for auth zone functions
unit test for auth zone functions
References authzone_query_test(), authzone_read_test(), tmpfilecleanup(), and unit_show_feature().