tesseract v5.3.3.20231005
Predicate3Test Class Reference
Inheritance diagram for Predicate3Test:
testing::Test

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Static Protected Attributes

static bool expected_to_finish_
 
static bool finished_
 
static int n1_
 
static int n2_
 
static int n3_
 

Additional Inherited Members

- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestCase ()
 
static void SetUpTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 946 of file gtest_pred_impl_unittest.cc.

Member Function Documentation

◆ SetUp()

void Predicate3Test::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 948 of file gtest_pred_impl_unittest.cc.

948 {
949 expected_to_finish_ = true;
950 finished_ = false;
951 n1_ = n2_ = n3_ = 0;
952 }

◆ TearDown()

void Predicate3Test::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 954 of file gtest_pred_impl_unittest.cc.

954 {
955 // Verifies that each of the predicate's arguments was evaluated
956 // exactly once.
957 EXPECT_EQ(1, n1_) <<
958 "The predicate assertion didn't evaluate argument 2 "
959 "exactly once.";
960 EXPECT_EQ(1, n2_) <<
961 "The predicate assertion didn't evaluate argument 3 "
962 "exactly once.";
963 EXPECT_EQ(1, n3_) <<
964 "The predicate assertion didn't evaluate argument 4 "
965 "exactly once.";
966
967 // Verifies that the control flow in the test function is expected.
969 FAIL() << "The predicate assertion unexpactedly aborted the test.";
970 } else if (!expected_to_finish_ && finished_) {
971 FAIL() << "The failed predicate assertion didn't abort the test "
972 "as expected.";
973 }
974 }
#define FAIL()
Definition: gtest.h:1928
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:2043

Member Data Documentation

◆ expected_to_finish_

bool Predicate3Test::expected_to_finish_
staticprotected

Definition at line 977 of file gtest_pred_impl_unittest.cc.

◆ finished_

bool Predicate3Test::finished_
staticprotected

Definition at line 980 of file gtest_pred_impl_unittest.cc.

◆ n1_

int Predicate3Test::n1_
staticprotected

Definition at line 982 of file gtest_pred_impl_unittest.cc.

◆ n2_

int Predicate3Test::n2_
staticprotected

Definition at line 983 of file gtest_pred_impl_unittest.cc.

◆ n3_

int Predicate3Test::n3_
staticprotected

Definition at line 984 of file gtest_pred_impl_unittest.cc.


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