- 3.0.1 core module.
|
Classes | |
class | GTestEnvVarTest |
Functions | |
def | AssertEq (expected, actual) |
def | SetEnvVar (env_var, value) |
def | GetFlag (flag) |
def | TestFlag (flag, test_val, default_val) |
Variables | |
string | IS_WINDOWS = 'nt' |
string | IS_LINUX = 'posix' |
COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-env-var-test_') | |
environ = os.environ.copy() | |
def googletest-env-var-test.AssertEq | ( | expected, | |
actual | |||
) |
def googletest-env-var-test.SetEnvVar | ( | env_var, | |
value | |||
) |
Sets the env variable to 'value'; unsets it when 'value' is None.
Referenced by googletest-env-var-test.GTestEnvVarTest.testEnvVarAffectsFlag(), TestFlag(), googletest-env-var-test.GTestEnvVarTest.testXmlOutputFile(), and googletest-env-var-test.GTestEnvVarTest.testXmlOutputFileOverride().
def googletest-env-var-test.GetFlag | ( | flag | ) |
Runs googletest-env-var-test_ and returns its output.
Referenced by TestFlag(), googletest-env-var-test.GTestEnvVarTest.testXmlOutputFile(), and googletest-env-var-test.GTestEnvVarTest.testXmlOutputFileOverride().
def googletest-env-var-test.TestFlag | ( | flag, | |
test_val, | |||
default_val | |||
) |
Verifies that the given flag is affected by the corresponding env var.
References AssertEq(), GetFlag(), and SetEnvVar().
Referenced by googletest-env-var-test.GTestEnvVarTest.testEnvVarAffectsFlag().
string googletest-env-var-test.IS_WINDOWS = 'nt' |
string googletest-env-var-test.IS_LINUX = 'posix' |
googletest-env-var-test.COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-env-var-test_') |
googletest-env-var-test.environ = os.environ.copy() |