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
commit0ee3d2785df37aaa91253fe30920fc3b19f71767 (patch)
tree41386183d92169d2ffb0bc5bf62a90fabe3bfa6e
parentd2ad937224363752d210ba9fd36cb2ade54653f8 (diff)
downloadpython-coveragepy-0ee3d2785df37aaa91253fe30920fc3b19f71767.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 858f4ec..fcd128e 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 20d7ee8..29e4561 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 {}