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 test_anchor_empty(), test_anchor_one(), test_anchors(), anchors_test(), dname_test_qdl(), dname_test_qdtl(), dname_test_query_dname_compare(), dname_test_count_labels(), dname_test_count_size_labels(), dname_test_pkt_dname_len(), dname_test_dname_lab_cmp(), dname_test_subdomain(), dname_test_strict_subdomain(), dname_test_isroot(), dname_test_removelabel(), dname_test_sigcount(), dname_test_iswild(), dname_test_canoncmp(), dname_test_topdomain(), dname_test_valid(), dname_test(), test_bin_find_entry(), test_lru(), test_short_table(), testlookup(), check_table(), testlookup_unlim(), test_long_table(), test_thr_main(), alloc_test(), net_test(), config_memsize_test(), rtt_test(), infra_test(), rnd_test(), test_buffers(), checkformerr(), perf_encode(), perftestpkt(), check_the_rrsigs(), testpkt(), add_item(), check_lru(), check_data(), check_zone_invariants(), check_neg_invariants(), stress_test(), neg_test(), corner_cases(), specific_cases(), burden_test(), check_lru_table(), entry_to_buf(), entry_to_repinfo(), extract_keys(), verifytest_rrset(), dstest_entry(), verifytest_file(), dstest_file(), nsectest(), nsec3_hash_test_entry(), and nsec3_hash_test().