tesseract v5.3.3.20231005
Predicate5Test Class Reference
Inheritance diagram for Predicate5Test:
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_
 
static int n4_
 
static int n5_
 

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

Member Function Documentation

◆ SetUp()

void Predicate5Test::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1940 of file gtest_pred_impl_unittest.cc.

◆ TearDown()

void Predicate5Test::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 1946 of file gtest_pred_impl_unittest.cc.

1946 {
1947 // Verifies that each of the predicate's arguments was evaluated
1948 // exactly once.
1949 EXPECT_EQ(1, n1_) <<
1950 "The predicate assertion didn't evaluate argument 2 "
1951 "exactly once.";
1952 EXPECT_EQ(1, n2_) <<
1953 "The predicate assertion didn't evaluate argument 3 "
1954 "exactly once.";
1955 EXPECT_EQ(1, n3_) <<
1956 "The predicate assertion didn't evaluate argument 4 "
1957 "exactly once.";
1958 EXPECT_EQ(1, n4_) <<
1959 "The predicate assertion didn't evaluate argument 5 "
1960 "exactly once.";
1961 EXPECT_EQ(1, n5_) <<
1962 "The predicate assertion didn't evaluate argument 6 "
1963 "exactly once.";
1964
1965 // Verifies that the control flow in the test function is expected.
1967 FAIL() << "The predicate assertion unexpactedly aborted the test.";
1968 } else if (!expected_to_finish_ && finished_) {
1969 FAIL() << "The failed predicate assertion didn't abort the test "
1970 "as expected.";
1971 }
1972 }
#define FAIL()
Definition: gtest.h:1928
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:2043

Member Data Documentation

◆ expected_to_finish_

bool Predicate5Test::expected_to_finish_
staticprotected

Definition at line 1975 of file gtest_pred_impl_unittest.cc.

◆ finished_

bool Predicate5Test::finished_
staticprotected

Definition at line 1978 of file gtest_pred_impl_unittest.cc.

◆ n1_

int Predicate5Test::n1_
staticprotected

Definition at line 1980 of file gtest_pred_impl_unittest.cc.

◆ n2_

int Predicate5Test::n2_
staticprotected

Definition at line 1981 of file gtest_pred_impl_unittest.cc.

◆ n3_

int Predicate5Test::n3_
staticprotected

Definition at line 1982 of file gtest_pred_impl_unittest.cc.

◆ n4_

int Predicate5Test::n4_
staticprotected

Definition at line 1983 of file gtest_pred_impl_unittest.cc.

◆ n5_

int Predicate5Test::n5_
staticprotected

Definition at line 1984 of file gtest_pred_impl_unittest.cc.


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