Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
class | GTestEnvVarTest |
Functions | |
def | AssertEq |
def | SetEnvVar |
def | GetFlag |
def | TestFlag |
Variables | |
string | __author__ 'wan@google.com (Zhanyong Wan)' |
string | IS_WINDOWS 'nt' |
string | IS_LINUX 'posix' |
tuple | COMMAND gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_') |
tuple | environ os.environ.copy() |
def gtest_env_var_test.AssertEq | ( | expected, | |
actual | |||
) |
Definition at line 48 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 48 of file gtest_env_var_test.py
References print().
Referenced by TestFlag(), gtest_env_var_test.GTestEnvVarTest.testXmlOutputFile(), and gtest_env_var_test.GTestEnvVarTest.testXmlOutputFileOverride().
def gtest_env_var_test.GetFlag | ( | flag | ) |
Runs gtest_env_var_test_ and returns its output.
Definition at line 64 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 64 of file gtest_env_var_test.py
Referenced by TestFlag(), gtest_env_var_test.GTestEnvVarTest.testXmlOutputFile(), and gtest_env_var_test.GTestEnvVarTest.testXmlOutputFileOverride().
def gtest_env_var_test.SetEnvVar | ( | env_var, | |
value | |||
) |
Sets the env variable to 'value'; unsets it when 'value' is None.
Definition at line 55 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 55 of file gtest_env_var_test.py
Referenced by gtest_env_var_test.GTestEnvVarTest.testEnvVarAffectsFlag(), TestFlag(), gtest_env_var_test.GTestEnvVarTest.testXmlOutputFile(), and gtest_env_var_test.GTestEnvVarTest.testXmlOutputFileOverride().
def gtest_env_var_test.TestFlag | ( | flag, | |
test_val, | |||
default_val | |||
) |
Verifies that the given flag is affected by the corresponding env var.
Definition at line 73 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 73 of file gtest_env_var_test.py
References AssertEq(), GetFlag(), and SetEnvVar().
Referenced by gtest_env_var_test.GTestEnvVarTest.testEnvVarAffectsFlag().
string gtest_env_var_test.__author__ 'wan@google.com (Zhanyong Wan)' |
Definition at line 34 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 34 of file gtest_env_var_test.py
tuple gtest_env_var_test.COMMAND gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_') |
Definition at line 43 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 43 of file gtest_env_var_test.py
tuple gtest_env_var_test.environ os.environ.copy() |
Definition at line 45 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 45 of file gtest_env_var_test.py
string gtest_env_var_test.IS_LINUX 'posix' |
Definition at line 41 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 41 of file gtest_env_var_test.py
string gtest_env_var_test.IS_WINDOWS 'nt' |
Definition at line 40 of file gtest_env_var_test.py.
View newest version in sPHENIX GitHub at line 40 of file gtest_env_var_test.py