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

Function check_equal

src/test/kernel/test_kernel.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81constexpr auto VERIFY_ALL_PRE_TAPROOT{VERIFY_ALL_PRE_SEGWIT | ScriptVerificationFlags::WITNESS};
82
83void check_equal(std::span<const std::byte> _actual, std::span<const std::byte> _expected, bool equal = true)
84{
85 std::span<const uint8_t> actual{reinterpret_cast<const unsigned char*>(_actual.data()), _actual.size()};
86 std::span<const uint8_t> expected{reinterpret_cast<const unsigned char*>(_expected.data()), _expected.size()};
87 BOOST_CHECK_EQUAL_COLLECTIONS(
88 actual.begin(), actual.end(),
89 expected.begin(), expected.end());
90}
91
92class TestLog
93{

Callers 5

BlockCheckedMethod · 0.85
CheckHandleFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
chainman_reindex_testFunction · 0.85

Calls 4

dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected