MCPcopy Create free account
hub / github.com/SIPp/sipp / TEST

Function TEST

src/strings.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138#include "gtest/gtest.h"
139
140TEST(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
148TEST(GetHostAndPort, IPv6Brackets) {
149 int port_result = -1;

Callers

nothing calls this directly

Calls 1

get_host_and_portFunction · 0.85

Tested by

no test coverage detected