MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestSplitHost

Function TestSplitHost

src/test/netbase_tests.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool static TestSplitHost(const std::string& test, const std::string& host, uint16_t port)
87{
88 std::string hostOut;
89 uint16_t portOut{0};
90 SplitHostPort(test, portOut, hostOut);
91 return hostOut == host && port == portOut;
92}
93
94BOOST_AUTO_TEST_CASE(netbase_splithost)
95{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

SplitHostPortFunction · 0.85

Tested by

no test coverage detected