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

Function BOOST_AUTO_TEST_CASE

src/test/logging_tests.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104};
105
106BOOST_AUTO_TEST_CASE(logging_timer)
107{
108 auto micro_timer = BCLog::Timer<std::chrono::microseconds>("tests", "end_msg");
109 const std::string_view result_prefix{"tests: msg ("};
110 BOOST_CHECK_EQUAL(micro_timer.LogMsg("msg").substr(0, result_prefix.size()), result_prefix);
111}
112
113BOOST_FIXTURE_TEST_CASE(logging_LogPrint, LogSetup)
114{

Callers

nothing calls this directly

Calls 7

LogMsgMethod · 0.80
GetLimiterMethod · 0.80
SuppressionsActiveMethod · 0.80
ConsumeMethod · 0.80
MockForwardAndSyncMethod · 0.80
sizeMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected