Go to the source code of this file.
|
| TEST (DestructorCheckTest, WithoutGuard) |
|
| TEST (DestructorCheckTest, SingleGuard) |
|
| TEST (DestructorCheckTest, SingleGuardDestroyed) |
|
| TEST (DestructorCheckTest, MultipleGuards) |
|
| TEST (DestructorCheckTest, MultipleGuardsDestroyed) |
|
TEST |
( |
DestructorCheckTest |
, |
|
|
WithoutGuard |
|
|
) |
| |
TEST |
( |
DestructorCheckTest |
, |
|
|
SingleGuard |
|
|
) |
| |
TEST |
( |
DestructorCheckTest |
, |
|
|
SingleGuardDestroyed |
|
|
) |
| |
TEST |
( |
DestructorCheckTest |
, |
|
|
MultipleGuards |
|
|
) |
| |
Definition at line 44 of file DestructorCheckTest.cpp.
References ASSERT_FALSE.
46 auto s1 = std::make_unique<Derived::Safety>(d);
47 auto s2 = std::make_unique<Derived::Safety>(d);
48 auto s3 = std::make_unique<Derived::Safety>(d);
55 auto s4 = std::make_unique<Derived::Safety>(d);
#define ASSERT_FALSE(condition)
TEST |
( |
DestructorCheckTest |
, |
|
|
MultipleGuardsDestroyed |
|
|
) |
| |
Definition at line 68 of file DestructorCheckTest.cpp.
References ASSERT_FALSE, and ASSERT_TRUE.
69 auto d = std::make_unique<Derived>();
70 auto s1 = std::make_unique<Derived::Safety>(*d);
71 auto s2 = std::make_unique<Derived::Safety>(*d);
72 auto s3 = std::make_unique<Derived::Safety>(*d);
73 auto s4 = std::make_unique<Derived::Safety>(*d);
#define ASSERT_FALSE(condition)
#define ASSERT_TRUE(condition)