MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / testIPv6

Method testIPv6

Tests/Libraries/Http/HttpURLParserTest.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void SC::HttpURLParserTest::testIPv6()
172{
173 HttpURLParser urlParser;
174 SC_TEST_EXPECT(urlParser.parse("http://[::1]/"));
175 SC_TEST_EXPECT(urlParser.protocol == "http");
176 SC_TEST_EXPECT(urlParser.hostname == "[::1]");
177 SC_TEST_EXPECT(urlParser.port == 80);
178 SC_TEST_EXPECT(urlParser.host == "[::1]");
179 SC_TEST_EXPECT(urlParser.pathname == "/");
180}
181
182void SC::HttpURLParserTest::testInvalidPort()
183{

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected