| 356 | |
| 357 | |
| 358 | class NotPredicate(Predicate): |
| 359 | def __init__(self, predicate, description=None): |
| 360 | self.predicate = predicate |
| 361 | self.description = description |
| 362 | |
| 363 | def __call__(self, config): |
| 364 | return not self.predicate(config) |
| 365 | |
| 366 | def _as_string(self, config, negate=False): |
| 367 | if self.description: |
| 368 | return self._format_description(config, not negate) |
| 369 | else: |
| 370 | return self.predicate._as_string(config, not negate) |
| 371 | |
| 372 | |
| 373 | class OrPredicate(Predicate): |
no outgoing calls
no test coverage detected