|
Smart Home firewall
Profile-based Smart Home firewall
|
Unit tests for the mapping structure from DNS domain names to IP addresses. More...
#include <string.h>#include "hashmap.h"#include "packet_utils.h"#include "dns_map.h"#include <CUnit/CUnit.h>#include <CUnit/Basic.h>
Functions | |
| void | test_dns_map_create () |
| void | test_dns_map_empty () |
| void | test_dns_map_add_remove () |
| void | test_dns_map_get () |
| void | test_dns_map_pop () |
| void | test_dns_entry_print () |
| int | main (int argc, char const *argv[]) |
Unit tests for the mapping structure from DNS domain names to IP addresses.
| int main | ( | int | argc, |
| char const * | argv[] | ||
| ) |
Test suite entry point.
| void test_dns_entry_print | ( | ) |
Test printing entries from a DNS table.
| void test_dns_map_add_remove | ( | ) |
Test adding and removing entries in a DNS table.
| void test_dns_map_create | ( | ) |
Test the creation of a DNS table.
| void test_dns_map_empty | ( | ) |
Test operations on an empty DNS table.
| void test_dns_map_get | ( | ) |
Test retrieving entries from a DNS table.
| void test_dns_map_pop | ( | ) |
Test popping entries from a DNS table.