| 45 | // ============================================================================ |
| 46 | |
| 47 | TEST(SharedWeakTest, DefaultConstructor) { |
| 48 | SharedWeak<int32_t> weak; |
| 49 | EXPECT_TRUE(weak.expired()); |
| 50 | EXPECT_EQ(weak.upgrade(), nullptr); |
| 51 | EXPECT_EQ(weak.use_count(), 0); |
| 52 | } |
| 53 | |
| 54 | TEST(SharedWeakTest, FromSharedPtr) { |
| 55 | auto strong = std::make_shared<int32_t>(42); |
nothing calls this directly
no test coverage detected