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

Function BOOST_AUTO_TEST_CASE

src/test/net_tests.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36BOOST_FIXTURE_TEST_SUITE(net_tests, RegTestingSetup)
37
38BOOST_AUTO_TEST_CASE(cnode_listen_port)
39{
40 // test default
41 uint16_t port{GetListenPort()};
42 BOOST_CHECK(port == Params().GetDefaultPort());
43 // test set port
44 uint16_t altPort = 12345;
45 BOOST_CHECK(gArgs.SoftSetArg("-port", ToString(altPort)));
46 port = GetListenPort();
47 BOOST_CHECK(port == altPort);
48}
49
50BOOST_AUTO_TEST_CASE(cnode_simple_test)
51{

Callers

nothing calls this directly

Calls 15

GetListenPortFunction · 0.85
LookupHostFunction · 0.85
ParseHexFunction · 0.85
HasReasonClass · 0.85
GetLocalAddrForPeerFunction · 0.85
GetAdjustedTimeFunction · 0.85
SetMockTimeFunction · 0.85
IsReachableFunction · 0.85
SetReachableFunction · 0.85
UtilBuildAddressFunction · 0.85
IsLocalFunction · 0.85
AddLocalFunction · 0.85

Tested by

no test coverage detected