MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / bswapTests

Method bswapTests

src/qt/test/compattests.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <compat/byteswap.h>
10
11void CompatTests::bswapTests()
12{
13 // Sibling in bitcoin/src/test/bswap_tests.cpp
14 uint16_t u1 = 0x1234;
15 uint32_t u2 = 0x56789abc;
16 uint64_t u3 = 0xdef0123456789abc;
17 uint16_t e1 = 0x3412;
18 uint32_t e2 = 0xbc9a7856;
19 uint64_t e3 = 0xbc9a78563412f0de;
20 QVERIFY(bswap_16(u1) == e1);
21 QVERIFY(bswap_32(u2) == e2);
22 QVERIFY(bswap_64(u3) == e3);
23}

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