aboutsummaryrefslogtreecommitdiff
path: root/src/test.h
blob: 989fecfd2e615c7f40621af11e577534da9752cf (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
32
33
34
/* test.h
 * (c) Jonas Gunz, 2020
 * License: MIT
 * */

#pragma once

#include <stdio.h>
#include "tree.h"
#include "dns.h"
#include "database.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();

int test_database();

#endif