Line | Branch | Exec | Source |
---|---|---|---|
1 | #include "test_nameresolvers.h" | ||
2 | #include "gate/net/nameresolvers.h" | ||
3 | #include "gate/strings.h" | ||
4 | |||
5 | 1 | GATE_TEST_FUNCTION(test_nameresolvers) | |
6 | { | ||
7 | static gate_string_t const test_hostname = GATE_STRING_INIT_STATIC("www.wikipedia.org"); | ||
8 | gate_result_t result; | ||
9 | gate_socket_endpoint_t ep[1]; | ||
10 | 1 | gate_size_t ep_count = sizeof(ep) / sizeof(ep[0]); | |
11 | |||
12 | 1 | GATE_TEST_UNIT_BEGIN(test_nameresolvers); | |
13 | |||
14 | 1 | result = gate_net_resolve_host(&test_hostname, GATE_SOCKET_FAMILY_INET4, ep, &ep_count); | |
15 |
1/2✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
|
1 | GATE_TEST_CHECK_OK(result); |
16 | |||
17 | 1 | GATE_TEST_UNIT_END; | |
18 | } | ||
19 |