Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
TestGenerationEnvironment< kExpectedCalls > Class Template Reference
Inheritance diagram for TestGenerationEnvironment< kExpectedCalls >:
Collaboration diagram for TestGenerationEnvironment< kExpectedCalls >:

Public Member Functions

void FixtureConstructorExecuted ()
 
void SetUpExecuted ()
 
void TearDownExecuted ()
 
void TestBodyExecuted ()
 
virtual void TearDown ()
 
- Public Member Functions inherited from testing::Environment
virtual ~Environment ()
 
virtual void SetUp ()
 

Static Public Member Functions

static TestGenerationEnvironmentInstance ()
 

Detailed Description

template<int kExpectedCalls>
class TestGenerationEnvironment< kExpectedCalls >

Definition at line 607 of file gtest-param-test_test.cc.

Member Function Documentation

◆ FixtureConstructorExecuted()

template<int kExpectedCalls>
void TestGenerationEnvironment< kExpectedCalls >::FixtureConstructorExecuted ( )
inline

Definition at line 614 of file gtest-param-test_test.cc.

614{ fixture_constructor_count_++; }
Here is the caller graph for this function:

◆ Instance()

template<int kExpectedCalls>
static TestGenerationEnvironment * TestGenerationEnvironment< kExpectedCalls >::Instance ( )
inlinestatic

Definition at line 609 of file gtest-param-test_test.cc.

609 {
611 return instance;
612 }
Here is the caller graph for this function:

◆ SetUpExecuted()

template<int kExpectedCalls>
void TestGenerationEnvironment< kExpectedCalls >::SetUpExecuted ( )
inline

Definition at line 615 of file gtest-param-test_test.cc.

615{ set_up_count_++; }
Here is the caller graph for this function:

◆ TearDown()

template<int kExpectedCalls>
virtual void TestGenerationEnvironment< kExpectedCalls >::TearDown ( )
inlinevirtual

Reimplemented from testing::Environment.

Definition at line 619 of file gtest-param-test_test.cc.

619 {
620 // If all MultipleTestGenerationTest tests have been de-selected
621 // by the filter flag, the following checks make no sense.
622 bool perform_check = false;
623
624 for (int i = 0; i < kExpectedCalls; ++i) {
625 Message msg;
626 msg << "TestsExpandedAndRun/" << i;
627 if (UnitTestOptions::FilterMatchesTest(
628 "TestExpansionModule/MultipleTestGenerationTest",
629 msg.GetString().c_str())) {
630 perform_check = true;
631 }
632 }
633 if (perform_check) {
634 EXPECT_EQ(kExpectedCalls, fixture_constructor_count_)
635 << "Fixture constructor of ParamTestGenerationTest test case "
636 << "has not been run as expected.";
637 EXPECT_EQ(kExpectedCalls, set_up_count_)
638 << "Fixture SetUp method of ParamTestGenerationTest test case "
639 << "has not been run as expected.";
640 EXPECT_EQ(kExpectedCalls, tear_down_count_)
641 << "Fixture TearDown method of ParamTestGenerationTest test case "
642 << "has not been run as expected.";
643 EXPECT_EQ(kExpectedCalls, test_body_count_)
644 << "Test in ParamTestGenerationTest test case "
645 << "has not been run as expected.";
646 }
647 }
#define EXPECT_EQ(val1, val2)
Definition gtest.h:1954

◆ TearDownExecuted()

template<int kExpectedCalls>
void TestGenerationEnvironment< kExpectedCalls >::TearDownExecuted ( )
inline

Definition at line 616 of file gtest-param-test_test.cc.

616{ tear_down_count_++; }
Here is the caller graph for this function:

◆ TestBodyExecuted()

template<int kExpectedCalls>
void TestGenerationEnvironment< kExpectedCalls >::TestBodyExecuted ( )
inline

Definition at line 617 of file gtest-param-test_test.cc.

617{ test_body_count_++; }

The documentation for this class was generated from the following file: