MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Find

Function Find

src/test/miniminer_tests.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67template <typename Key, typename Value>
68Value Find(const std::map<Key, Value>& map, const Key& key)
69{
70 auto it = map.find(key);
71 BOOST_CHECK_MESSAGE(it != map.end(), strprintf("Cannot find %s", key.ToString()));
72 return it->second;
73}
74
75BOOST_FIXTURE_TEST_CASE(miniminer_negative, TestChain100Setup)
76{

Callers 15

AddSingleMethod · 0.85
Good_Method · 0.85
Attempt_Method · 0.85
Connected_Method · 0.85
SetServices_Method · 0.85
FindAddressEntry_Method · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
AddDependencyMethod · 0.85
SetTransactionFeeMethod · 0.85
RemoveTransactionMethod · 0.85
DestroyTransactionMethod · 0.85
MakeSetMethod · 0.85

Calls 3

findMethod · 0.80
endMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected