| 39 | }; |
| 40 | |
| 41 | TEST_F(RefTest, New) { |
| 42 | MyRef* ref = new MyRef; |
| 43 | ASSERT_EQ(1, constructed); |
| 44 | ASSERT_EQ(0, destroyed); |
| 45 | ref->Unref(); |
| 46 | ASSERT_EQ(1, constructed); |
| 47 | ASSERT_EQ(1, destroyed); |
| 48 | } |
| 49 | |
| 50 | TEST_F(RefTest, RefUnref) { |
| 51 | MyRef* ref = new MyRef; |
nothing calls this directly
no test coverage detected