diff options
Diffstat (limited to 'src/test.h')
-rw-r--r-- | src/test.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test.h b/src/test.h new file mode 100644 index 0000000..885e304 --- /dev/null +++ b/src/test.h @@ -0,0 +1,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 |