Definition at line 67 of file googletest-color-test.py.
◆ testAliasesOfYesAndNo()
def googletest-color-test.GTestColorTest.testAliasesOfYesAndNo |
( |
|
self | ) |
|
Tests using aliases in specifying --gtest_color.
Definition at line 112 of file googletest-color-test.py.
112 def testAliasesOfYesAndNo(self):
113 """Tests using aliases in specifying --gtest_color."""
114
115 self.assert_(
UsesColor(
'dumb',
None,
'true'))
116 self.assert_(
UsesColor(
'dumb',
None,
'YES'))
117 self.assert_(
UsesColor(
'dumb',
None,
'T'))
118 self.assert_(
UsesColor(
'dumb',
None,
'1'))
119
120 self.assert_(
not UsesColor(
'xterm',
None,
'f'))
121 self.assert_(
not UsesColor(
'xterm',
None,
'false'))
122 self.assert_(
not UsesColor(
'xterm',
None,
'0'))
123 self.assert_(
not UsesColor(
'xterm',
None,
'unknown'))
124
125
def UsesColor(term, color_env_var, color_flag)
◆ testEnvVarAndFlag()
def googletest-color-test.GTestColorTest.testEnvVarAndFlag |
( |
|
self | ) |
|
Tests the case when there are both GTEST_COLOR and --gtest_color.
Definition at line 105 of file googletest-color-test.py.
105 def testEnvVarAndFlag(self):
106 """Tests the case when there are both GTEST_COLOR and --gtest_color."""
107
108 self.assert_(
not UsesColor(
'xterm-color',
'no',
'no'))
109 self.assert_(
UsesColor(
'dumb',
'no',
'yes'))
110 self.assert_(
UsesColor(
'xterm-color',
'no',
'auto'))
111
◆ testEnvVarOnly()
def googletest-color-test.GTestColorTest.testEnvVarOnly |
( |
|
self | ) |
|
Tests the case when there's GTEST_COLOR but not --gtest_color.
Definition at line 94 of file googletest-color-test.py.
94 def testEnvVarOnly(self):
95 """Tests the case when there's GTEST_COLOR but not --gtest_color."""
96
97 self.assert_(
not UsesColor(
'dumb',
'no',
None))
98 self.assert_(
not UsesColor(
'xterm-color',
'no',
None))
99 if not IS_WINDOWS:
100 self.assert_(
not UsesColor(
'dumb',
'auto',
None))
101 self.assert_(
UsesColor(
'xterm-color',
'auto',
None))
102 self.assert_(
UsesColor(
'dumb',
'yes',
None))
103 self.assert_(
UsesColor(
'xterm-color',
'yes',
None))
104
◆ testFlagOnly()
def googletest-color-test.GTestColorTest.testFlagOnly |
( |
|
self | ) |
|
Tests the case when there's --gtest_color but not GTEST_COLOR.
Definition at line 83 of file googletest-color-test.py.
83 def testFlagOnly(self):
84 """Tests the case when there's --gtest_color but not GTEST_COLOR."""
85
86 self.assert_(
not UsesColor(
'dumb',
None,
'no'))
87 self.assert_(
not UsesColor(
'xterm-color',
None,
'no'))
88 if not IS_WINDOWS:
89 self.assert_(
not UsesColor(
'emacs',
None,
'auto'))
90 self.assert_(
UsesColor(
'xterm',
None,
'auto'))
91 self.assert_(
UsesColor(
'dumb',
None,
'yes'))
92 self.assert_(
UsesColor(
'xterm',
None,
'yes'))
93
◆ testNoEnvVarNoFlag()
def googletest-color-test.GTestColorTest.testNoEnvVarNoFlag |
( |
|
self | ) |
|
Tests the case when there's neither GTEST_COLOR nor --gtest_color.
Definition at line 68 of file googletest-color-test.py.
68 def testNoEnvVarNoFlag(self):
69 """Tests the case when there's neither GTEST_COLOR nor --gtest_color."""
70
71 if not IS_WINDOWS:
72 self.assert_(
not UsesColor(
'dumb',
None,
None))
73 self.assert_(
not UsesColor(
'emacs',
None,
None))
74 self.assert_(
not UsesColor(
'xterm-mono',
None,
None))
75 self.assert_(
not UsesColor(
'unknown',
None,
None))
76 self.assert_(
not UsesColor(
None,
None,
None))
77 self.assert_(
UsesColor(
'linux',
None,
None))
78 self.assert_(
UsesColor(
'cygwin',
None,
None))
79 self.assert_(
UsesColor(
'xterm',
None,
None))
80 self.assert_(
UsesColor(
'xterm-color',
None,
None))
81 self.assert_(
UsesColor(
'xterm-256color',
None,
None))
82
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/third_party/googletest/googletest/test/googletest-color-test.py