MCPcopy Create free account
hub / github.com/ElementsProject/elements / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

src/test/reverselock_tests.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12BOOST_AUTO_TEST_SUITE(reverselock_tests)
13
14BOOST_AUTO_TEST_CASE(reverselock_basics)
15{
16 Mutex mutex;
17 WAIT_LOCK(mutex, lock);
18
19 BOOST_CHECK(lock.owns_lock());
20 {
21 REVERSE_LOCK(lock);
22 BOOST_CHECK(!lock.owns_lock());
23 }
24 BOOST_CHECK(lock.owns_lock());
25}
26
27BOOST_AUTO_TEST_CASE(reverselock_multiple)
28{

Callers

nothing calls this directly

Calls 3

HasReasonClass · 0.85
unlockMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected