(self, file_path)
| 365 | self.matchers = self._create_single_matchers(patterns, working_dir) |
| 366 | |
| 367 | def has_match(self, file_path): |
| 368 | if isinstance(file_path, str): |
| 369 | file_path = pathlib.Path(file_path) |
| 370 | |
| 371 | absolute_path = file_path.absolute() |
| 372 | |
| 373 | for matcher in self.matchers: |
| 374 | if matcher.has_match(absolute_path): |
| 375 | return True |
| 376 | |
| 377 | return False |
| 378 | |
| 379 | @staticmethod |
| 380 | def _create_single_matchers(patterns, working_dir): |
no outgoing calls
no test coverage detected