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

Function TestPair

src/test/compress_tests.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool static TestPair(uint64_t dec, uint64_t enc) {
37 return CompressAmount(dec) == enc &&
38 DecompressAmount(enc) == dec;
39}
40
41BOOST_AUTO_TEST_CASE(compress_amounts)
42{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

CompressAmountFunction · 0.85
DecompressAmountFunction · 0.85

Tested by

no test coverage detected