Definition at line 144 of file mastertrainer_test.cc.
◆ MasterTrainerTest()
MasterTrainerTest::MasterTrainerTest |
( |
| ) |
|
|
inlineprotected |
Definition at line 159 of file mastertrainer_test.cc.
159 {
162 }
ShapeTable * shape_table_
std::unique_ptr< MasterTrainer > master_trainer_
◆ ~MasterTrainerTest()
MasterTrainerTest::~MasterTrainerTest |
( |
| ) |
|
|
inlineoverrideprotected |
◆ LoadMasterTrainer()
void MasterTrainerTest::LoadMasterTrainer |
( |
| ) |
|
|
inlineprotected |
Definition at line 170 of file mastertrainer_test.cc.
170 {
172 FLAGS_F =
file::JoinPath(LANGDATA_DIR,
"font_properties").c_str();
176 const char *filelist[] = {tr_file_name.c_str(), nullptr};
177 std::string file_prefix;
183 }
#define EXPECT_TRUE(condition)
std::unique_ptr< MasterTrainer > LoadTrainingData(const char *const *filelist, bool replication, ShapeTable **shape_table, std::string &file_prefix)
static std::string JoinPath(const std::string &s1, const std::string &s2)
std::string TestDataNameToPath(const std::string &name)
std::string TmpNameToPath(const std::string &name)
◆ SetUp()
void MasterTrainerTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ TestDataNameToPath()
std::string MasterTrainerTest::TestDataNameToPath |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ TmpNameToPath()
std::string MasterTrainerTest::TmpNameToPath |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ VerifyIl1()
void MasterTrainerTest::VerifyIl1 |
( |
| ) |
|
|
inlineprotected |
Definition at line 187 of file mastertrainer_test.cc.
187 {
188
191
198
205
207
210
212
213
218
219
224 }
const double kMin1lDistance
#define EXPECT_EQ(val1, val2)
#define EXPECT_GT(val1, val2)
#define EXPECT_GE(val1, val2)
int FindShape(int unichar_id, int font_id) const
◆ master_trainer_
std::unique_ptr<MasterTrainer> MasterTrainerTest::master_trainer_ |
|
protected |
◆ shape_table_
The documentation for this class was generated from the following file: