eric6/DataViews/PyCoverageDialog.py

changeset 7250
d8bdc55aee1a
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7249:0bf517e60f54 7250:d8bdc55aee1a
9 9
10 10
11 import os 11 import os
12 12
13 from PyQt5.QtCore import pyqtSlot, Qt 13 from PyQt5.QtCore import pyqtSlot, Qt
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QMenu, QHeaderView, \ 14 from PyQt5.QtWidgets import (
15 QTreeWidgetItem, QApplication 15 QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem,
16 QApplication
17 )
16 18
17 from E5Gui import E5MessageBox 19 from E5Gui import E5MessageBox
18 from E5Gui.E5Application import e5App 20 from E5Gui.E5Application import e5App
19 from E5Gui.E5ProgressDialog import E5ProgressDialog 21 from E5Gui.E5ProgressDialog import E5ProgressDialog
20 22
193 for file in files: 195 for file in files:
194 if self.cancelled: 196 if self.cancelled:
195 return 197 return
196 198
197 try: 199 try:
198 statements, excluded, missing, readable = \ 200 statements, excluded, missing, readable = (
199 cover.analysis2(file)[1:] 201 cover.analysis2(file)[1:])
200 readableEx = (excluded and self.__format_lines(excluded) or 202 readableEx = (excluded and self.__format_lines(excluded) or
201 '') 203 '')
202 n = len(statements) 204 n = len(statements)
203 m = n - len(missing) 205 m = n - len(missing)
204 if n > 0: 206 if n > 0:

eric ide

mercurial