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

Public Member Functions

 ~NthItemTest () override
 
void PushTestData (KDVector *v)
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 

Protected Member Functions

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

Additional Inherited Members

- 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 21 of file nthitem_test.cc.

Constructor & Destructor Documentation

◆ ~NthItemTest()

tesseract::NthItemTest::~NthItemTest ( )
overridedefault

Member Function Documentation

◆ PushTestData()

void tesseract::NthItemTest::PushTestData ( KDVector v)
inline

Definition at line 30 of file nthitem_test.cc.

30 {
31 for (size_t i = 0; i < countof(test_data); ++i) {
32 IntKDPair pair(test_data[i], i);
33 v->push_back(pair);
34 }
35 }
KDPairInc< int, int > IntKDPair
Definition: kdpair.h:191
constexpr size_t countof(T const (&)[N]) noexcept
Definition: serialis.h:34
int test_data[]
Definition: heap_test.cc:23

◆ SetUp()

void tesseract::NthItemTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 23 of file nthitem_test.cc.

23 {
24 std::locale::global(std::locale(""));
25 }

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