Functions | Variables
gmock_test_utils Namespace Reference

Functions

def GetExitStatus
def GetSourceDir
def GetTestExecutablePath
def Main

Variables

string __author__ = 'wan@google.com (Zhanyong Wan)'
 environ = gtest_test_utils.environ
tuple gtest_tests_util_dir = os.path.join(SCRIPT_DIR, '../gtest/test')
 GTEST_TESTS_UTIL_DIR = gtest_tests_util_dir
 PREMATURE_EXIT_FILE_ENV_VAR = gtest_test_utils.PREMATURE_EXIT_FILE_ENV_VAR
tuple SCRIPT_DIR = os.path.dirname(__file__)
 SetEnvVar = gtest_test_utils.SetEnvVar
 Subprocess = gtest_test_utils.Subprocess
 TestCase = gtest_test_utils.TestCase

Function Documentation

def gmock_test_utils.GetExitStatus (   exit_code)
Returns the argument to exit(), or -1 if exit() wasn't called.

Args:
  exit_code: the result value of os.system(command).

Definition at line 76 of file gmock_test_utils.py.

Returns the absolute path of the directory where the .py files are.

Definition at line 54 of file gmock_test_utils.py.

def gmock_test_utils.GetTestExecutablePath (   executable_name)
Returns the absolute path of the test binary given its name.

The function will print a message and abort the program if the resulting file
doesn't exist.

Args:
  executable_name: name of the test binary that the test script runs.

Returns:
  The absolute path of the test binary.

Definition at line 60 of file gmock_test_utils.py.

Runs the unit test.

Definition at line 109 of file gmock_test_utils.py.


Variable Documentation

string gmock_test_utils::__author__ = 'wan@google.com (Zhanyong Wan)'

Definition at line 34 of file gmock_test_utils.py.

Definition at line 102 of file gmock_test_utils.py.

tuple gmock_test_utils::gtest_tests_util_dir = os.path.join(SCRIPT_DIR, '../gtest/test')

Definition at line 44 of file gmock_test_utils.py.

Definition at line 46 of file gmock_test_utils.py.

Definition at line 104 of file gmock_test_utils.py.

tuple gmock_test_utils::SCRIPT_DIR = os.path.dirname(__file__)

Definition at line 41 of file gmock_test_utils.py.

Definition at line 103 of file gmock_test_utils.py.

Definition at line 100 of file gmock_test_utils.py.

Definition at line 101 of file gmock_test_utils.py.



ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:59