aboutsummaryrefslogtreecommitdiff
path: root/src/test.h
blob: 885e30403aa2ae428f895b6bd3ec171f79962415 (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
/* 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_parsing_fuzz();

#endif