Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
bool static TestDecode(uint64_t in) {
32
return in == CompressAmount(DecompressAmount(in));
33
}
34
35
bool static TestPair(uint64_t dec, uint64_t enc) {
36
return CompressAmount(dec) == enc &&
Callers
1
BOOST_AUTO_TEST_CASE
Function · 0.85
Calls
2
CompressAmount
Function · 0.85
DecompressAmount
Function · 0.85
Tested by
no test coverage detected