OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Module containing base test results classes.""" | 5 """Module containing base test results classes.""" |
6 | 6 |
7 class ResultType(object): | 7 class ResultType(object): |
8 """Class enumerating test types.""" | 8 """Class enumerating test types.""" |
9 PASS = 'PASS' | 9 PASS = 'PASS' |
10 SKIP = 'SKIP' | 10 SKIP = 'SKIP' |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 def GetUnknown(self): | 196 def GetUnknown(self): |
197 """Get the set of all unknown test results.""" | 197 """Get the set of all unknown test results.""" |
198 return self._GetType(ResultType.UNKNOWN) | 198 return self._GetType(ResultType.UNKNOWN) |
199 | 199 |
200 def GetNotPass(self): | 200 def GetNotPass(self): |
201 """Get the set of all non-passed test results.""" | 201 """Get the set of all non-passed test results.""" |
202 return self.GetAll() - self.GetPass() | 202 return self.GetAll() - self.GetPass() |
203 | 203 |
204 def DidRunPass(self): | 204 def DidRunPass(self): |
205 """Return whether the test run was successful.""" | 205 """Return whether the test run was successful.""" |
206 return not (self.GetNotPass() - self.GetSkip()) | 206 return not self.GetNotPass() - self.GetSkip() |
207 | 207 |
OLD | NEW |