| 25 | class Context2 {}; |
| 26 | |
| 27 | TEST_F(ContextManagerTest, createsValidContextPointers) { |
| 28 | std::weak_ptr<Context1> ctx1 = contextManager.addContext<Context1>(); |
| 29 | ASSERT_EQ(1, contextManager.countContexts()); |
| 30 | ASSERT_FALSE(ctx1.expired()); |
| 31 | std::weak_ptr<Context2> ctx2 = contextManager.addContext<Context2>(); |
| 32 | ASSERT_EQ(2, contextManager.countContexts()); |
| 33 | ASSERT_FALSE(ctx2.expired()); |
| 34 | } |
| 35 | |
| 36 | TEST_F(ContextManagerTest, allowsCreatingTheSameContextTypeTwice) { |
| 37 | std::weak_ptr<Context1> ctx1 = contextManager.addContext<Context1>(); |
nothing calls this directly
no test coverage detected