From 6b89dda44ab4ea006867d88034270b79c198aa05 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 27 Nov 2009 15:33:54 -0500 Subject: Add a little bit of branch information to 'debug data' --- TODO.txt | 2 +- coverage/cmdline.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO.txt b/TODO.txt index d6dfdda..74404d7 100644 --- a/TODO.txt +++ b/TODO.txt @@ -14,7 +14,7 @@ Coverage TODO + Maybe turning off yellow lines should make those lines green? + A missing branch to leave the function shows an annotation of -1. Now "exit". + XML report needs to get branch information. -- Add branch info to "coverage debug data" ++ Add branch info to "coverage debug data" * 3.3 diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 1029ad6..938099e 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -429,9 +429,12 @@ class CoverageScript(object): elif info == 'data': print("-- data ---------------------------------------") self.coverage.load() + print("path: %s" % self.coverage.data.filename) + print("has_arcs: %r" % self.coverage.data.has_arcs()) summary = self.coverage.data.summary(fullpath=True) if summary: filenames = sorted(summary.keys()) + print("\n%d files:" % len(filenames)) for f in filenames: print("%s: %d lines" % (f, summary[f])) else: -- cgit v1.2.1