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

Function TestDecode

src/test/compress_tests.cpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool static TestDecode(uint64_t in) {
33 return in == CompressAmount(DecompressAmount(in));
34}
35
36bool static TestPair(uint64_t dec, uint64_t enc) {
37 return CompressAmount(dec) == enc &&

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

CompressAmountFunction · 0.85
DecompressAmountFunction · 0.85

Tested by

no test coverage detected