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

Function BOOST_AUTO_TEST_CASE

src/test/sock_tests.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 14

CreateSocketFunction · 0.85
SocketIsClosedFunction · 0.85
CloseSocketFunction · 0.85
CreateSocketPairFunction · 0.85
SendAndRecvMessageFunction · 0.85
HasReasonClass · 0.85
RecvUntilTerminatorMethod · 0.80
SendCompleteMethod · 0.80
GetMethod · 0.45
ReleaseMethod · 0.45
ResetMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected