Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ TestPair
Function
TestPair
src/test/compress_tests.cpp:35–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
bool static TestPair(uint64_t dec, uint64_t enc) {
36
return CompressAmount(dec) == enc &&
37
DecompressAmount(enc) == dec;
38
}
39
40
BOOST_AUTO_TEST_CASE(compress_amounts)
41
{
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