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

Function BOOST_AUTO_TEST_CASE

src/test/sock_tests.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38BOOST_AUTO_TEST_CASE(constructor_and_destructor)
39{
40 const SOCKET s = CreateSocket();
41 Sock* sock = new Sock(s);
42 BOOST_CHECK(*sock == s);
43 BOOST_CHECK(!SocketIsClosed(s));
44 delete sock;
45 BOOST_CHECK(SocketIsClosed(s));
46}
47
48BOOST_AUTO_TEST_CASE(move_constructor)
49{

Callers

nothing calls this directly

Calls 9

CreateSocketFunction · 0.85
SocketIsClosedFunction · 0.85
HasReasonClass · 0.85
send_and_receiveMethod · 0.80
joinMethod · 0.80
RecvUntilTerminatorMethod · 0.80
SendCompleteMethod · 0.80
WaitMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected