diff options
Diffstat (limited to 'coverage/results.py')
-rw-r--r-- | coverage/results.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/coverage/results.py b/coverage/results.py index ce9e0fa4..676ba716 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -83,6 +83,20 @@ class Analysis(object): ) return sorted(missing) + def arcs_missing_formatted(self): + """ The missing branch arcs, formatted. + + Returns a string like "1->2, 1->3, 16->20" + + """ + arcs = self.missing_branch_arcs() + pairs = [] + for line, exits in arcs.iteritems(): + for exit in exits: + pair = '%d->%d' % (line, exit) + pairs.append(pair) + return ', '.join(pairs) + def arcs_unpredicted(self): """Returns a sorted list of the executed arcs missing from the code.""" possible = self.arc_possibilities() |