tesseract v5.3.3.20231005
|
Functions | |
def | GetGTestRootDir (gmock_root) |
def | ValidateGMockRootDir (gmock_root) |
def | ValidateOutputDir (output_dir) |
def | FuseGMockH (gmock_root, output_dir) |
def | FuseGMockAllCcToFile (gmock_root, output_file) |
def | FuseGMockGTestAllCc (gmock_root, output_dir) |
def | FuseGMock (gmock_root, output_dir) |
def | main () |
Variables | |
DEFAULT_GMOCK_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') | |
INCLUDE_GMOCK_FILE_REGEX = re.compile(r'^\s*#\s*include\s*"(gmock/.+)"') | |
string | GMOCK_H_SEED = 'include/gmock/gmock.h' |
string | GMOCK_ALL_CC_SEED = 'src/gmock-all.cc' |
string | GTEST_H_OUTPUT = 'gtest/gtest.h' |
string | GMOCK_H_OUTPUT = 'gmock/gmock.h' |
string | GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc' |
def fuse_gmock_files.FuseGMock | ( | gmock_root, | |
output_dir | |||
) |
Fuses gtest.h, gmock.h, and gmock-gtest-all.h.
Definition at line 231 of file fuse_gmock_files.py.
def fuse_gmock_files.FuseGMockAllCcToFile | ( | gmock_root, | |
output_file | |||
) |
Scans folder gmock_root to fuse gmock-all.cc into output_file.
Definition at line 170 of file fuse_gmock_files.py.
def fuse_gmock_files.FuseGMockGTestAllCc | ( | gmock_root, | |
output_dir | |||
) |
Scans folder gmock_root to generate gmock-gtest-all.cc in output_dir.
Definition at line 220 of file fuse_gmock_files.py.
def fuse_gmock_files.FuseGMockH | ( | gmock_root, | |
output_dir | |||
) |
Scans folder gmock_root to generate gmock/gmock.h in output_dir.
Definition at line 127 of file fuse_gmock_files.py.
def fuse_gmock_files.GetGTestRootDir | ( | gmock_root | ) |
Returns the root directory of Google Test.
Definition at line 93 of file fuse_gmock_files.py.
def fuse_gmock_files.main | ( | ) |
Definition at line 242 of file fuse_gmock_files.py.
def fuse_gmock_files.ValidateGMockRootDir | ( | gmock_root | ) |
Makes sure gmock_root points to a valid gmock root directory. The function aborts the program on failure. Args: gmock_root: A string with the mock root directory.
Definition at line 99 of file fuse_gmock_files.py.
def fuse_gmock_files.ValidateOutputDir | ( | output_dir | ) |
Makes sure output_dir points to a valid output directory. The function aborts the program on failure. Args: output_dir: A string representing the output directory.
Definition at line 113 of file fuse_gmock_files.py.
fuse_gmock_files.DEFAULT_GMOCK_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') |
Definition at line 73 of file fuse_gmock_files.py.
string fuse_gmock_files.GMOCK_ALL_CC_SEED = 'src/gmock-all.cc' |
Definition at line 85 of file fuse_gmock_files.py.
string fuse_gmock_files.GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc' |
Definition at line 90 of file fuse_gmock_files.py.
string fuse_gmock_files.GMOCK_H_OUTPUT = 'gmock/gmock.h' |
Definition at line 89 of file fuse_gmock_files.py.
string fuse_gmock_files.GMOCK_H_SEED = 'include/gmock/gmock.h' |
Definition at line 84 of file fuse_gmock_files.py.
string fuse_gmock_files.GTEST_H_OUTPUT = 'gtest/gtest.h' |
Definition at line 88 of file fuse_gmock_files.py.
fuse_gmock_files.INCLUDE_GMOCK_FILE_REGEX = re.compile(r'^\s*#\s*include\s*"(gmock/.+)"') |
Definition at line 81 of file fuse_gmock_files.py.