MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TestParse

Function TestParse

src/test/netbase_tests.cpp:125–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125bool static TestParse(std::string src, std::string canon)
126{
127 CService addr(LookupNumeric(src, 65535));
128 return canon == addr.ToStringAddrPort();
129}
130
131BOOST_AUTO_TEST_CASE(netbase_lookupnumeric)
132{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 2

LookupNumericFunction · 0.85
ToStringAddrPortMethod · 0.80

Tested by

no test coverage detected