tesseract  5.0.0
tesseract::STATSTest Class Reference
Inheritance diagram for tesseract::STATSTest:

Public Member Functions

void SetUp () override
 
void TearDown () override
 

Public Attributes

STATS stats_
 

Detailed Description

Definition at line 21 of file stats_test.cc.

Member Function Documentation

◆ SetUp()

void tesseract::STATSTest::SetUp ( )
inlineoverride

Definition at line 23 of file stats_test.cc.

23  {
24  std::locale::global(std::locale(""));
25  stats_.set_range(0, 16);
26  for (size_t i = 0; i < countof(kTestData); ++i) {
27  stats_.add(i, kTestData[i]);
28  }
29  }
const int kTestData[]
Definition: stats_test.cc:19
constexpr size_t countof(T const (&)[N]) noexcept
Definition: serialis.h:42
void add(int32_t value, int32_t count)
Definition: statistc.cpp:99
bool set_range(int32_t min_bucket_value, int32_t max_bucket_value_plus_1)
Definition: statistc.cpp:59

◆ TearDown()

void tesseract::STATSTest::TearDown ( )
inlineoverride

Definition at line 31 of file stats_test.cc.

31 {}

Member Data Documentation

◆ stats_

STATS tesseract::STATSTest::stats_

Definition at line 33 of file stats_test.cc.


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