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

Method CompareSessionIDs

src/test/net_tests.cpp:1364–1369  ·  view source on GitHub ↗

Test whether the transport's session ID matches the session ID we expect. */

Source from the content-addressed store, hash-verified

1362
1363 /** Test whether the transport's session ID matches the session ID we expect. */
1364 void CompareSessionIDs() const
1365 {
1366 auto info = m_transport.GetInfo();
1367 BOOST_CHECK(info.session_id);
1368 BOOST_CHECK(uint256(MakeUCharSpan(m_cipher.GetSessionID())) == *info.session_id);
1369 }
1370
1371 /** Introduce a bit error in the data scheduled to be sent. */
1372 void Damage()

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 4

MakeUCharSpanFunction · 0.85
GetSessionIDMethod · 0.80
uint256Class · 0.50
GetInfoMethod · 0.45

Tested by

no test coverage detected