unbound 0.1
|
Declarations useful for the unit tests. More...
#include "util/log.h"
Defines | |
#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 | |
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(), burden_test(), check_data(), check_lru(), check_lru_table(), check_neg_invariants(), check_table(), check_the_rrsigs(), check_zone_invariants(), checkformerr(), config_memsize_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(), dstest_entry(), dstest_file(), entry_to_buf(), entry_to_repinfo(), extract_keys(), infra_test(), neg_test(), net_test(), nsec3_hash_test(), nsec3_hash_test_entry(), nsectest(), perf_encode(), perftestpkt(), rnd_test(), 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(), testpkt(), verifytest_file(), and verifytest_rrset().