tesseract v5.3.3.20231005
Predicate1Test Class Reference
Inheritance diagram for Predicate1Test:
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_
 

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 122 of file gtest_pred_impl_unittest.cc.

Member Function Documentation

◆ SetUp()

void Predicate1Test::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 124 of file gtest_pred_impl_unittest.cc.

124 {
125 expected_to_finish_ = true;
126 finished_ = false;
127 n1_ = 0;
128 }

◆ TearDown()

void Predicate1Test::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 130 of file gtest_pred_impl_unittest.cc.

130 {
131 // Verifies that each of the predicate's arguments was evaluated
132 // exactly once.
133 EXPECT_EQ(1, n1_) <<
134 "The predicate assertion didn't evaluate argument 2 "
135 "exactly once.";
136
137 // Verifies that the control flow in the test function is expected.
139 FAIL() << "The predicate assertion unexpactedly aborted the test.";
140 } else if (!expected_to_finish_ && finished_) {
141 FAIL() << "The failed predicate assertion didn't abort the test "
142 "as expected.";
143 }
144 }
#define FAIL()
Definition: gtest.h:1928
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:2043

Member Data Documentation

◆ expected_to_finish_

bool Predicate1Test::expected_to_finish_
staticprotected

Definition at line 147 of file gtest_pred_impl_unittest.cc.

◆ finished_

bool Predicate1Test::finished_
staticprotected

Definition at line 150 of file gtest_pred_impl_unittest.cc.

◆ n1_

int Predicate1Test::n1_
staticprotected

Definition at line 152 of file gtest_pred_impl_unittest.cc.


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