tesseract  5.0.0-alpha-619-ge9db
include_gunit.h File Reference
#include "errcode.h"
#include "fileio.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Classes

class  file
 

Macros

#define ARRAYSIZE(arr)   (sizeof(arr) / sizeof(arr[0]))
 
#define CHECK(test)   ASSERT_HOST(test)
 
#define CHECK_EQ(test, value)   CHECK((test) == (value))
 
#define CHECK_GT(test, value)   CHECK((test) > (value))
 
#define CHECK_LT(test, value)   CHECK((test) < (value))
 
#define CHECK_LE(test, value)   CHECK((test) <= (value))
 
#define CHECK_OK(test)   CHECK(test)
 

Variables

const char * FLAGS_test_tmpdir = "./tmp"
 

Macro Definition Documentation

◆ ARRAYSIZE

#define ARRAYSIZE (   arr)    (sizeof(arr) / sizeof(arr[0]))

Definition at line 53 of file include_gunit.h.

◆ CHECK

#define CHECK (   test)    ASSERT_HOST(test)

Definition at line 57 of file include_gunit.h.

◆ CHECK_EQ

#define CHECK_EQ (   test,
  value 
)    CHECK((test) == (value))

Definition at line 58 of file include_gunit.h.

◆ CHECK_GT

#define CHECK_GT (   test,
  value 
)    CHECK((test) > (value))

Definition at line 59 of file include_gunit.h.

◆ CHECK_LE

#define CHECK_LE (   test,
  value 
)    CHECK((test) <= (value))

Definition at line 61 of file include_gunit.h.

◆ CHECK_LT

#define CHECK_LT (   test,
  value 
)    CHECK((test) < (value))

Definition at line 60 of file include_gunit.h.

◆ CHECK_OK

#define CHECK_OK (   test)    CHECK(test)

Definition at line 62 of file include_gunit.h.

Variable Documentation

◆ FLAGS_test_tmpdir

const char* FLAGS_test_tmpdir = "./tmp"

Definition at line 20 of file include_gunit.h.