From c84e2de22183a02fe10fe4a12c930b9c47c8f12b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 27 Oct 2009 07:21:41 -0400 Subject: Better reporting of partial lines, including leaving out partial stuff altogether if no arcs were measured. --- coverage/control.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 3861cc1..c08fda6 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -382,6 +382,10 @@ class Analysis(object): pc_cov = 100.0 return pc_cov + def has_arcs(self): + """Were arcs measured in this result?""" + return self.coverage.data.has_arcs() + def arc_possibilities(self): """Returns a sorted list of the arcs in the code.""" return self.parser.arcs() -- cgit v1.2.1