|
Greenbone Vulnerability Management Libraries 22.32.0
|

Go to the source code of this file.
Macros | |
| #define | TEN "0123456789" |
| #define | SIXTY TEN TEN TEN TEN TEN TEN |
| #define | HUNDRED TEN TEN TEN TEN TEN TEN TEN TEN TEN TEN |
| #define | ASSERT_HOST_EQUALS(hosts, i, string) |
Functions | |
| Describe (hosts) | |
| BeforeEach (hosts) | |
| AfterEach (hosts) | |
| Ensure (hosts, gvm_hosts_new_never_returns_null) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_ipv4) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_ipv6) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_hostname) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_cidr_block) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_cidr6_block) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_range_short) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_range6_short) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_range_long) | |
| Ensure (hosts, gvm_get_host_type_returns_host_type_range6_long) | |
| Ensure (hosts, gvm_get_host_type_returns_error) | |
| Ensure (hosts, gvm_hosts_new_with_max_returns_success) | |
| Ensure (hosts, gvm_hosts_new_with_max_returns_error) | |
| static int | host_value_eq (gvm_host_t *host, gchar *string) |
| Ensure (hosts, gvm_hosts_move_host_to_end) | |
| Ensure (hosts, gvm_hosts_allowed_only) | |
| int | main (int argc, char **argv) |
| #define ASSERT_HOST_EQUALS | ( | hosts, | |
| i, | |||
| string ) |
Definition at line 229 of file hosts_tests.c.
Referenced by Ensure().
Definition at line 58 of file hosts_tests.c.
Definition at line 57 of file hosts_tests.c.
| #define TEN "0123456789" |
Definition at line 56 of file hosts_tests.c.
| AfterEach | ( | hosts | ) |
Definition at line 16 of file hosts_tests.c.
| BeforeEach | ( | hosts | ) |
Definition at line 13 of file hosts_tests.c.
| Describe | ( | hosts | ) |
| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_error | ) |
Definition at line 165 of file hosts_tests.c.
References gvm_get_host_type(), and SIXTY.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_cidr6_block | ) |
Definition at line 94 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_CIDR6_BLOCK.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_cidr_block | ) |
Definition at line 80 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_CIDR_BLOCK.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_hostname | ) |
Definition at line 60 of file hosts_tests.c.
References gvm_get_host_type(), HOST_TYPE_NAME, and SIXTY.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_ipv4 | ) |
Definition at line 39 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_IPV4.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_ipv6 | ) |
Definition at line 49 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_IPV6.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_range6_long | ) |
Definition at line 156 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_RANGE6_LONG.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_range6_short | ) |
Definition at line 126 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_RANGE6_SHORT.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_range_long | ) |
Definition at line 134 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_RANGE_LONG.

| Ensure | ( | hosts | , |
| gvm_get_host_type_returns_host_type_range_short | ) |
Definition at line 104 of file hosts_tests.c.
References gvm_get_host_type(), and HOST_TYPE_RANGE_SHORT.

| Ensure | ( | hosts | , |
| gvm_hosts_allowed_only | ) |
Definition at line 315 of file hosts_tests.c.
References gvm_host_value_str(), gvm_hosts_allowed_only(), gvm_hosts_count(), gvm_hosts_free(), gvm_hosts_new(), and gvm_hosts_next().

| Ensure | ( | hosts | , |
| gvm_hosts_move_host_to_end | ) |
Definition at line 252 of file hosts_tests.c.
References ASSERT_HOST_EQUALS, gvm_hosts::current, gvm_hosts_count(), gvm_hosts_free(), gvm_hosts_move_current_host_to_end(), gvm_hosts_new(), gvm_hosts_next(), host_value_eq(), and gvm_hosts::hosts.

| Ensure | ( | hosts | , |
| gvm_hosts_new_never_returns_null | ) |
Definition at line 22 of file hosts_tests.c.
References gvm_hosts_free(), and gvm_hosts_new().

| Ensure | ( | hosts | , |
| gvm_hosts_new_with_max_returns_error | ) |
Definition at line 215 of file hosts_tests.c.
References gvm_hosts_new_with_max().

| Ensure | ( | hosts | , |
| gvm_hosts_new_with_max_returns_success | ) |
Definition at line 194 of file hosts_tests.c.
References gvm_hosts_free(), and gvm_hosts_new_with_max().

|
static |
Definition at line 241 of file hosts_tests.c.
References gvm_host_value_str().
Referenced by Ensure().


| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 352 of file hosts_tests.c.
References gvm_hosts_allowed_only().
