aboutsummaryrefslogtreecommitdiff
path: root/src/test.h
blob: ea3543d98e14d5b083788cebe4d59e0b32ea108e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* test.h
 * (c) Jonas Gunz, 2020
 * License: MIT
 * */

#pragma once

#include <stdio.h>
#include "tree.h"
#include "dns.h"

/*
 * TODO
 * * fuzz dns_parse_packet()
 * * test dns_parse_packet() with random valid data
 * * test qname_check() with random valid data
 */

#ifdef _TEST

void run_test ();

int test_tree ();

int test_dns_parsing ();

int test_dns_qname_fuzz();

int test_dns_message_fuzz();

#endif