MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / TEST_F

Function TEST_F

tests/integration/ContextHandlingTest.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26struct Context2 {};
27
28TEST_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
36TEST_F(ContextHandlingTest, sameContextTypesShareTheSamePointer) {
37 ::cucumber::ScenarioScope<Context1> context1_a;

Callers

nothing calls this directly

Calls 2

countContextsMethod · 0.80
purgeContextsMethod · 0.80

Tested by

no test coverage detected