#include <criterion/criterion.h>#include <criterion/parameterized.h>#include "hostname.h"#include "apphook.h"#include <string.h>#include <unistd.h>#include "hostname.c"
Classes | |
| struct | HostNameList |
Macros | |
| #define | WRAP_GETHOSTNAME 1 |
| #define | gethostname __wrap_gethostname |
| #define | wrap_gethostname() (__wrap_gethostname = __fqdn_gethostname) |
Functions | |
| ParameterizedTestParameters (test_hostname, test_hostname_fqdn_conversion) | |
| ParameterizedTest (HostNameList *host_name_list, test_hostname, test_hostname_fqdn_conversion) | |
| ParameterizedTestParameters (test_hostname, test_hostname_short_conversion) | |
| ParameterizedTest (HostNameList *host_name_list, test_hostname, test_hostname_short_conversion) | |
| ParameterizedTestParameters (test_hostname, test_hostname_fqdn) | |
| ParameterizedTest (HostNameList *host_name_list, test_hostname, test_hostname_fqdn) | |
| ParameterizedTestParameters (test_hostname, test_hostname_short) | |
| ParameterizedTest (HostNameList *host_name_list, test_hostname, test_hostname_short) | |
| Test (test_hostname, test_extract_fqdn_from_hostent_uses_primary_name_if_it_is_an_fqdn) | |
| Test (test_hostname, test_extract_fqdn_from_hostent_finds_the_first_fqdn_in_aliases_if_primary_is_short) | |
| Test (test_hostname, test_extract_fqdn_from_hostent_returns_NULL_when_no_fqdn_is_found) | |
| #define gethostname __wrap_gethostname |
| #define WRAP_GETHOSTNAME 1 |
| #define wrap_gethostname | ( | ) | (__wrap_gethostname = __fqdn_gethostname) |
| ParameterizedTest | ( | HostNameList * | host_name_list, |
| test_hostname | , | ||
| test_hostname_fqdn | |||
| ) |
| ParameterizedTest | ( | HostNameList * | host_name_list, |
| test_hostname | , | ||
| test_hostname_fqdn_conversion | |||
| ) |
| ParameterizedTest | ( | HostNameList * | host_name_list, |
| test_hostname | , | ||
| test_hostname_short | |||
| ) |
| ParameterizedTest | ( | HostNameList * | host_name_list, |
| test_hostname | , | ||
| test_hostname_short_conversion | |||
| ) |
| ParameterizedTestParameters | ( | test_hostname | , |
| test_hostname_fqdn | |||
| ) |
| ParameterizedTestParameters | ( | test_hostname | , |
| test_hostname_fqdn_conversion | |||
| ) |
| ParameterizedTestParameters | ( | test_hostname | , |
| test_hostname_short | |||
| ) |
| ParameterizedTestParameters | ( | test_hostname | , |
| test_hostname_short_conversion | |||
| ) |
| Test | ( | test_hostname | , |
| test_extract_fqdn_from_hostent_finds_the_first_fqdn_in_aliases_if_primary_is_short | |||
| ) |
| Test | ( | test_hostname | , |
| test_extract_fqdn_from_hostent_returns_NULL_when_no_fqdn_is_found | |||
| ) |
| Test | ( | test_hostname | , |
| test_extract_fqdn_from_hostent_uses_primary_name_if_it_is_an_fqdn | |||
| ) |