eric6/DebugClients/Python/coverage/control.py

changeset 7975
7d493839a8fc
parent 7702
f8b97639deb5
equal deleted inserted replaced
7974:f425b578ede7 7975:7d493839a8fc
2 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt 2 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3 3
4 """Core control stuff for coverage.py.""" 4 """Core control stuff for coverage.py."""
5 5
6 import atexit 6 import atexit
7 import collections
7 import contextlib 8 import contextlib
8 import os 9 import os
9 import os.path 10 import os.path
10 import platform 11 import platform
11 import sys 12 import sys
735 self._warn("No data was collected.", slug="no-data-collected") 736 self._warn("No data was collected.", slug="no-data-collected")
736 737
737 # Touch all the files that could have executed, so that we can 738 # Touch all the files that could have executed, so that we can
738 # mark completely unexecuted files as 0% covered. 739 # mark completely unexecuted files as 0% covered.
739 if self._data is not None: 740 if self._data is not None:
741 file_paths = collections.defaultdict(list)
740 for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files(): 742 for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files():
741 file_path = self._file_mapper(file_path) 743 file_path = self._file_mapper(file_path)
742 self._data.touch_file(file_path, plugin_name) 744 file_paths[plugin_name].append(file_path)
745 for plugin_name, paths in file_paths.items():
746 self._data.touch_files(paths, plugin_name)
743 747
744 if self.config.note: 748 if self.config.note:
745 self._warn("The '[run] note' setting is no longer supported.") 749 self._warn("The '[run] note' setting is no longer supported.")
746 750
747 # Backward compatibility with version 1. 751 # Backward compatibility with version 1.

eric ide

mercurial