|
static int | test_buffers (sldns_buffer *pkt, sldns_buffer *out) |
| see if buffers contain the same packet
|
|
static void | checkformerr (sldns_buffer *pkt) |
| check if unbound formerr equals ldns formerr
|
|
static void | perf_encode (struct query_info *qi, struct reply_info *rep, uint16_t id, uint16_t flags, sldns_buffer *out, time_t timenow, struct edns_data *edns) |
| performance test message encoding
|
|
static void | perftestpkt (sldns_buffer *pkt, struct alloc_cache *alloc, sldns_buffer *out, const char *hex) |
| perf test a packet
|
|
static void | print_rrset (struct ub_packed_rrset_key *rrset) |
| print packed rrset
|
|
static void | print_packet_rrsets (struct query_info *qinfo, struct reply_info *rep) |
| debug print a packet that failed
|
|
static int | no_data_for_rrsig (struct reply_info *rep, struct ub_packed_rrset_key *rrsig) |
| check that there is no data element that matches the RRSIG
|
|
static void | check_the_rrsigs (struct query_info *qinfo, struct reply_info *rep) |
| check RRSIGs in packet
|
|
static void | testpkt (sldns_buffer *pkt, struct alloc_cache *alloc, sldns_buffer *out, const char *hex) |
| test a packet
|
|
static void | simpletest (sldns_buffer *pkt, struct alloc_cache *alloc, sldns_buffer *out) |
| simple test of parsing
|
|
static void | testfromfile (sldns_buffer *pkt, struct alloc_cache *alloc, sldns_buffer *out, const char *fname) |
| simple test of parsing, pcat file
|
|
static void | testfromdrillfile (sldns_buffer *pkt, struct alloc_cache *alloc, sldns_buffer *out, const char *fname) |
| simple test of parsing, drill file
|
|
void | msgparse_test (void) |
| unit test for msgreply and msgparse
|
|
Calls msg parse unit tests. Exits with code 1 on a failure.