(self, path)
| 633 | return True |
| 634 | |
| 635 | def _walk_dir(self, path): |
| 636 | empty = True |
| 637 | |
| 638 | for dirpath, dirnames, filenames in os.walk(path): |
| 639 | # Don't walk into .tox |
| 640 | for ignore_name in IGNORE_DIRS: |
| 641 | try: |
| 642 | dirnames.remove(ignore_name) |
| 643 | except ValueError: |
| 644 | pass |
| 645 | for filename in filenames: |
| 646 | if is_c_filename(filename): |
| 647 | yield os.path.join(dirpath, filename) |
| 648 | empty = False |
| 649 | |
| 650 | if empty: |
| 651 | self.warning(f"Directory {path} doesn't contain any C file") |
| 652 | self.exitcode = 1 |
| 653 | |
| 654 | def walk(self, paths): |
| 655 | for path in paths: |
no test coverage detected