Smart Home firewall
Profile-based Smart Home firewall
Functions
dns_map.c File Reference

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>
Include dependency graph for dns_map.c:

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[])
 

Detailed Description

Unit tests for the mapping structure from DNS domain names to IP addresses.

Date
2022-09-06

Function Documentation

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Test suite entry point.

◆ test_dns_entry_print()

void test_dns_entry_print ( )

Test printing entries from a DNS table.

◆ test_dns_map_add_remove()

void test_dns_map_add_remove ( )

Test adding and removing entries in a DNS table.

◆ test_dns_map_create()

void test_dns_map_create ( )

Test the creation of a DNS table.

◆ test_dns_map_empty()

void test_dns_map_empty ( )

Test operations on an empty DNS table.

◆ test_dns_map_get()

void test_dns_map_get ( )

Test retrieving entries from a DNS table.

◆ test_dns_map_pop()

void test_dns_map_pop ( )

Test popping entries from a DNS table.