From 52ef6f76547e757dc9ca9fc4aecdb9aec4a47368 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 3861cc19..c08fda62 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