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

Function BOOST_AUTO_TEST_CASE

src/tests/util_tests.cpp:18–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16BOOST_AUTO_TEST_SUITE(util_tests)
17
18BOOST_AUTO_TEST_CASE(util_criticalsection)
19{
20 CCriticalSection cs;
21
22 do {
23 LOCK(cs);
24 break;
25
26 BOOST_ERROR("break was swallowed!");
27 } while(0);
28
29 do {
30 TRY_LOCK(cs, lockTest);
31 if (lockTest)
32 break;
33
34 BOOST_ERROR("break was swallowed!");
35 } while(0);
36}
37
38BOOST_AUTO_TEST_CASE(util_MedianFilter)
39{

Callers

nothing calls this directly

Calls 15

ParseHexFunction · 0.85
HexStrFunction · 0.85
DateTimeStrFormatFunction · 0.85
WildcardMatchFunction · 0.85
FormatMoneyFunction · 0.85
ParseMoneyFunction · 0.85
IsHexFunction · 0.85
seed_insecure_randFunction · 0.85
insecure_randFunction · 0.85
TimingResistantEqualFunction · 0.85
GetTimeFunction · 0.85
medianMethod · 0.80

Tested by

no test coverage detected