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

Protected Member Functions

void TestParser (int argc, const char **const_argv)
 
void TestParser (const char *usage, int argc, const char **const_argv)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

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 32 of file commandlineflags_test.cc.

Member Function Documentation

◆ TestParser() [1/2]

void tesseract::CommandlineflagsTest::TestParser ( const char *  usage,
int  argc,
const char **  const_argv 
)
inlineprotected

Definition at line 37 of file commandlineflags_test.cc.

37 {
38 // Make a copy of the pointer since it can be altered by the function.
39 char **argv = const_cast<char **>(const_argv);
40 tesseract::ParseCommandLineFlags(usage, &argc, &argv, true);
41 }
void ParseCommandLineFlags(const char *usage, int *argc, char ***argv, const bool remove_flags)

◆ TestParser() [2/2]

void tesseract::CommandlineflagsTest::TestParser ( int  argc,
const char **  const_argv 
)
inlineprotected

Definition at line 34 of file commandlineflags_test.cc.

34 {
35 TestParser("", argc, const_argv);
36 }
void TestParser(int argc, const char **const_argv)

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