summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-06 20:31:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-06 20:31:13 -0500
commit27c6089d69e2bcbd7b4ac957371b22236312c20e (patch)
tree62f4423591f1088271618e17cf9261eaf8f9fd57
parent9ff9f01e8fba61ccd44615031b4351b1bbe91dc1 (diff)
downloadpython-coveragepy-git-27c6089d69e2bcbd7b4ac957371b22236312c20e.tar.gz
Add a no-op method to the base class to make branch coverage work with plugins. Thanks, Jessamyn Smith.
-rw-r--r--AUTHORS.txt1
-rw-r--r--coverage/plugin.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/AUTHORS.txt b/AUTHORS.txt
index 858f4ec0..fcd128e4 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -32,6 +32,7 @@ Greg Rogers
Guillaume Chazarain
Imri Goldberg
JT Olds
+Jessamyn Smith
Joseph Tate
Julian Berman
Krystian Kichewko
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 20d7ee8f..29e45616 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -204,6 +204,9 @@ class FileReporter(object):
def translate_arcs(self, arcs):
return arcs
+ def no_branch_lines(self):
+ return set()
+
def exit_counts(self):
return {}