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

Function TestDecode

src/test/compress_tests.cpp:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool static TestDecode(uint64_t in) {
32 return in == CompressAmount(DecompressAmount(in));
33}
34
35bool static TestPair(uint64_t dec, uint64_t enc) {
36 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