| 26 | struct Context2 {}; |
| 27 | |
| 28 | TEST_F(ContextHandlingTest, contextsAreCreatedWhenNeeded) { |
| 29 | ASSERT_EQ(0, contextManager.countContexts()); |
| 30 | ::cucumber::ScenarioScope<Context1> context1; |
| 31 | ASSERT_EQ(1, contextManager.countContexts()); |
| 32 | ::cucumber::ScenarioScope<Context2> context2; |
| 33 | ASSERT_EQ(2, contextManager.countContexts()); |
| 34 | } |
| 35 | |
| 36 | TEST_F(ContextHandlingTest, sameContextTypesShareTheSamePointer) { |
| 37 | ::cucumber::ScenarioScope<Context1> context1_a; |
nothing calls this directly
no test coverage detected