Definition at line 70 of file gtest_color_test.py.
def gtest_color_test.GTestColorTest.testAliasesOfYesAndNo |
( |
|
self | ) |
|
Tests using aliases in specifying --gtest_color.
Definition at line 115 of file gtest_color_test.py.
References gtest_test_utils.Main(), and gtest_color_test.UsesColor().
Referenced by gtest_color_test.GTestColorTest.testAliasesOfYesAndNo().
116 """Tests using aliases in specifying --gtest_color.""" 118 self.assert_(
UsesColor(
'dumb',
None,
'true'))
119 self.assert_(
UsesColor(
'dumb',
None,
'YES'))
120 self.assert_(
UsesColor(
'dumb',
None,
'T'))
121 self.assert_(
UsesColor(
'dumb',
None,
'1'))
123 self.assert_(
not UsesColor(
'xterm',
None,
'f'))
124 self.assert_(
not UsesColor(
'xterm',
None,
'false'))
125 self.assert_(
not UsesColor(
'xterm',
None,
'0'))
126 self.assert_(
not UsesColor(
'xterm',
None,
'unknown'))
def testAliasesOfYesAndNo(self)
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testAliasesOfYesAndNo |
( |
|
self | ) |
|
Tests using aliases in specifying --gtest_color.
Definition at line 115 of file gtest_color_test.py.
References gtest_test_utils.Main(), gtest_color_test.GTestColorTest.testAliasesOfYesAndNo(), and gtest_color_test.UsesColor().
116 """Tests using aliases in specifying --gtest_color.""" 118 self.assert_(
UsesColor(
'dumb',
None,
'true'))
119 self.assert_(
UsesColor(
'dumb',
None,
'YES'))
120 self.assert_(
UsesColor(
'dumb',
None,
'T'))
121 self.assert_(
UsesColor(
'dumb',
None,
'1'))
123 self.assert_(
not UsesColor(
'xterm',
None,
'f'))
124 self.assert_(
not UsesColor(
'xterm',
None,
'false'))
125 self.assert_(
not UsesColor(
'xterm',
None,
'0'))
126 self.assert_(
not UsesColor(
'xterm',
None,
'unknown'))
def testAliasesOfYesAndNo(self)
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testAliasesOfYesAndNo |
( |
|
self | ) |
|
Tests using aliases in specifying --gtest_color.
Definition at line 115 of file gtest_color_test.py.
References gtest_test_utils.Main(), gtest_color_test.GTestColorTest.testAliasesOfYesAndNo(), and gtest_color_test.UsesColor().
116 """Tests using aliases in specifying --gtest_color.""" 118 self.assert_(
UsesColor(
'dumb',
None,
'true'))
119 self.assert_(
UsesColor(
'dumb',
None,
'YES'))
120 self.assert_(
UsesColor(
'dumb',
None,
'T'))
121 self.assert_(
UsesColor(
'dumb',
None,
'1'))
123 self.assert_(
not UsesColor(
'xterm',
None,
'f'))
124 self.assert_(
not UsesColor(
'xterm',
None,
'false'))
125 self.assert_(
not UsesColor(
'xterm',
None,
'0'))
126 self.assert_(
not UsesColor(
'xterm',
None,
'unknown'))
def testAliasesOfYesAndNo(self)
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testEnvVarAndFlag |
( |
|
self | ) |
|
def gtest_color_test.GTestColorTest.testEnvVarAndFlag |
( |
|
self | ) |
|
def gtest_color_test.GTestColorTest.testEnvVarAndFlag |
( |
|
self | ) |
|
def gtest_color_test.GTestColorTest.testEnvVarOnly |
( |
|
self | ) |
|
Tests the case when there's GTEST_COLOR but not --gtest_color.
Definition at line 97 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testEnvVarOnly(), and gtest_color_test.UsesColor().
98 """Tests the case when there's GTEST_COLOR but not --gtest_color.""" 100 self.assert_(
not UsesColor(
'dumb',
'no',
None))
101 self.assert_(
not UsesColor(
'xterm-color',
'no',
None))
103 self.assert_(
not UsesColor(
'dumb',
'auto',
None))
104 self.assert_(
UsesColor(
'xterm-color',
'auto',
None))
105 self.assert_(
UsesColor(
'dumb',
'yes',
None))
106 self.assert_(
UsesColor(
'xterm-color',
'yes',
None))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testEnvVarOnly |
( |
|
self | ) |
|
Tests the case when there's GTEST_COLOR but not --gtest_color.
Definition at line 97 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testEnvVarOnly(), and gtest_color_test.UsesColor().
98 """Tests the case when there's GTEST_COLOR but not --gtest_color.""" 100 self.assert_(
not UsesColor(
'dumb',
'no',
None))
101 self.assert_(
not UsesColor(
'xterm-color',
'no',
None))
103 self.assert_(
not UsesColor(
'dumb',
'auto',
None))
104 self.assert_(
UsesColor(
'xterm-color',
'auto',
None))
105 self.assert_(
UsesColor(
'dumb',
'yes',
None))
106 self.assert_(
UsesColor(
'xterm-color',
'yes',
None))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testEnvVarOnly |
( |
|
self | ) |
|
Tests the case when there's GTEST_COLOR but not --gtest_color.
Definition at line 97 of file gtest_color_test.py.
References gtest_color_test.UsesColor().
Referenced by gtest_color_test.GTestColorTest.testEnvVarOnly().
98 """Tests the case when there's GTEST_COLOR but not --gtest_color.""" 100 self.assert_(
not UsesColor(
'dumb',
'no',
None))
101 self.assert_(
not UsesColor(
'xterm-color',
'no',
None))
103 self.assert_(
not UsesColor(
'dumb',
'auto',
None))
104 self.assert_(
UsesColor(
'xterm-color',
'auto',
None))
105 self.assert_(
UsesColor(
'dumb',
'yes',
None))
106 self.assert_(
UsesColor(
'xterm-color',
'yes',
None))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testFlagOnly |
( |
|
self | ) |
|
Tests the case when there's --gtest_color but not GTEST_COLOR.
Definition at line 86 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testFlagOnly(), and gtest_color_test.UsesColor().
87 """Tests the case when there's --gtest_color but not GTEST_COLOR.""" 89 self.assert_(
not UsesColor(
'dumb',
None,
'no'))
90 self.assert_(
not UsesColor(
'xterm-color',
None,
'no'))
92 self.assert_(
not UsesColor(
'emacs',
None,
'auto'))
93 self.assert_(
UsesColor(
'xterm',
None,
'auto'))
94 self.assert_(
UsesColor(
'dumb',
None,
'yes'))
95 self.assert_(
UsesColor(
'xterm',
None,
'yes'))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testFlagOnly |
( |
|
self | ) |
|
Tests the case when there's --gtest_color but not GTEST_COLOR.
Definition at line 86 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testFlagOnly(), and gtest_color_test.UsesColor().
87 """Tests the case when there's --gtest_color but not GTEST_COLOR.""" 89 self.assert_(
not UsesColor(
'dumb',
None,
'no'))
90 self.assert_(
not UsesColor(
'xterm-color',
None,
'no'))
92 self.assert_(
not UsesColor(
'emacs',
None,
'auto'))
93 self.assert_(
UsesColor(
'xterm',
None,
'auto'))
94 self.assert_(
UsesColor(
'dumb',
None,
'yes'))
95 self.assert_(
UsesColor(
'xterm',
None,
'yes'))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testFlagOnly |
( |
|
self | ) |
|
Tests the case when there's --gtest_color but not GTEST_COLOR.
Definition at line 86 of file gtest_color_test.py.
References gtest_color_test.UsesColor().
Referenced by gtest_color_test.GTestColorTest.testFlagOnly().
87 """Tests the case when there's --gtest_color but not GTEST_COLOR.""" 89 self.assert_(
not UsesColor(
'dumb',
None,
'no'))
90 self.assert_(
not UsesColor(
'xterm-color',
None,
'no'))
92 self.assert_(
not UsesColor(
'emacs',
None,
'auto'))
93 self.assert_(
UsesColor(
'xterm',
None,
'auto'))
94 self.assert_(
UsesColor(
'dumb',
None,
'yes'))
95 self.assert_(
UsesColor(
'xterm',
None,
'yes'))
def UsesColor(term, color_env_var, color_flag)
def gtest_color_test.GTestColorTest.testNoEnvVarNoFlag |
( |
|
self | ) |
|
Tests the case when there's neither GTEST_COLOR nor --gtest_color.
Definition at line 71 of file gtest_color_test.py.
References gtest_color_test.UsesColor().
Referenced by gtest_color_test.GTestColorTest.testNoEnvVarNoFlag().
72 """Tests the case when there's neither GTEST_COLOR nor --gtest_color.""" 75 self.assert_(
not UsesColor(
'dumb',
None,
None))
76 self.assert_(
not UsesColor(
'emacs',
None,
None))
77 self.assert_(
not UsesColor(
'xterm-mono',
None,
None))
78 self.assert_(
not UsesColor(
'unknown',
None,
None))
79 self.assert_(
not UsesColor(
None,
None,
None))
80 self.assert_(
UsesColor(
'linux',
None,
None))
81 self.assert_(
UsesColor(
'cygwin',
None,
None))
82 self.assert_(
UsesColor(
'xterm',
None,
None))
83 self.assert_(
UsesColor(
'xterm-color',
None,
None))
84 self.assert_(
UsesColor(
'xterm-256color',
None,
None))
def UsesColor(term, color_env_var, color_flag)
def testNoEnvVarNoFlag(self)
def gtest_color_test.GTestColorTest.testNoEnvVarNoFlag |
( |
|
self | ) |
|
Tests the case when there's neither GTEST_COLOR nor --gtest_color.
Definition at line 71 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testNoEnvVarNoFlag(), and gtest_color_test.UsesColor().
72 """Tests the case when there's neither GTEST_COLOR nor --gtest_color.""" 75 self.assert_(
not UsesColor(
'dumb',
None,
None))
76 self.assert_(
not UsesColor(
'emacs',
None,
None))
77 self.assert_(
not UsesColor(
'xterm-mono',
None,
None))
78 self.assert_(
not UsesColor(
'unknown',
None,
None))
79 self.assert_(
not UsesColor(
None,
None,
None))
80 self.assert_(
UsesColor(
'linux',
None,
None))
81 self.assert_(
UsesColor(
'cygwin',
None,
None))
82 self.assert_(
UsesColor(
'xterm',
None,
None))
83 self.assert_(
UsesColor(
'xterm-color',
None,
None))
84 self.assert_(
UsesColor(
'xterm-256color',
None,
None))
def UsesColor(term, color_env_var, color_flag)
def testNoEnvVarNoFlag(self)
def gtest_color_test.GTestColorTest.testNoEnvVarNoFlag |
( |
|
self | ) |
|
Tests the case when there's neither GTEST_COLOR nor --gtest_color.
Definition at line 71 of file gtest_color_test.py.
References gtest_color_test.GTestColorTest.testNoEnvVarNoFlag(), and gtest_color_test.UsesColor().
72 """Tests the case when there's neither GTEST_COLOR nor --gtest_color.""" 75 self.assert_(
not UsesColor(
'dumb',
None,
None))
76 self.assert_(
not UsesColor(
'emacs',
None,
None))
77 self.assert_(
not UsesColor(
'xterm-mono',
None,
None))
78 self.assert_(
not UsesColor(
'unknown',
None,
None))
79 self.assert_(
not UsesColor(
None,
None,
None))
80 self.assert_(
UsesColor(
'linux',
None,
None))
81 self.assert_(
UsesColor(
'cygwin',
None,
None))
82 self.assert_(
UsesColor(
'xterm',
None,
None))
83 self.assert_(
UsesColor(
'xterm-color',
None,
None))
84 self.assert_(
UsesColor(
'xterm-256color',
None,
None))
def UsesColor(term, color_env_var, color_flag)
def testNoEnvVarNoFlag(self)
The documentation for this class was generated from the following file: