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

Function BOOST_AUTO_TEST_CASE

src/test/bswap_tests.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9BOOST_AUTO_TEST_SUITE(bswap_tests)
10
11BOOST_AUTO_TEST_CASE(bswap_tests)
12{
13 uint16_t u1 = 0x1234;
14 uint32_t u2 = 0x56789abc;
15 uint64_t u3 = 0xdef0123456789abc;
16 uint16_t e1 = 0x3412;
17 uint32_t e2 = 0xbc9a7856;
18 uint64_t e3 = 0xbc9a78563412f0de;
19 BOOST_CHECK(bswap_16(u1) == e1);
20 BOOST_CHECK(bswap_32(u2) == e2);
21 BOOST_CHECK(bswap_64(u3) == e3);
22}
23
24BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 3

bswap_16Function · 0.85
bswap_32Function · 0.85
bswap_64Function · 0.85

Tested by

no test coverage detected