| 138 | #include "gtest/gtest.h" |
| 139 | |
| 140 | TEST(GetHostAndPort, IPv6) { |
| 141 | int port_result = -1; |
| 142 | char host_result[255]; |
| 143 | get_host_and_port("fe80::92a4:deff:fe74:7af5", host_result, &port_result); |
| 144 | EXPECT_EQ(0, port_result); |
| 145 | EXPECT_STREQ("fe80::92a4:deff:fe74:7af5", host_result); |
| 146 | } |
| 147 | |
| 148 | TEST(GetHostAndPort, IPv6Brackets) { |
| 149 | int port_result = -1; |
nothing calls this directly
no test coverage detected