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

Function TestEncode

src/test/compress_tests.cpp:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25BOOST_FIXTURE_TEST_SUITE(compress_tests, BasicTestingSetup)
26
27bool static TestEncode(uint64_t in) {
28 return in == DecompressAmount(CompressAmount(in));
29}
30
31bool static TestDecode(uint64_t in) {
32 return in == CompressAmount(DecompressAmount(in));

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

DecompressAmountFunction · 0.85
CompressAmountFunction · 0.85

Tested by

no test coverage detected