diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-27 15:33:54 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-27 15:33:54 -0500 |
commit | 6b89dda44ab4ea006867d88034270b79c198aa05 (patch) | |
tree | 3591d17b7cdf0d24578f498abb40811e8ab9f4e8 | |
parent | dba6da49995e88d475d2474e9ebcbfa3fbed8c35 (diff) | |
download | python-coveragepy-6b89dda44ab4ea006867d88034270b79c198aa05.tar.gz |
Add a little bit of branch information to 'debug data'
-rw-r--r-- | TODO.txt | 2 | ||||
-rw-r--r-- | coverage/cmdline.py | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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: |