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

Function TestParse

src/tests/netbase_tests.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool static TestParse(string src, string canon)
78{
79 CService addr;
80 if (!LookupNumeric(src.c_str(), addr, 65535))
81 return canon == "";
82 return canon == addr.ToString();
83}
84
85BOOST_AUTO_TEST_CASE(netbase_lookupnumeric)
86{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

LookupNumericFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected