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