From 27c6089d69e2bcbd7b4ac957371b22236312c20e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 6 Feb 2015 20:31:13 -0500 Subject: Add a no-op method to the base class to make branch coverage work with plugins. Thanks, Jessamyn Smith. --- coverage/plugin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coverage/plugin.py') 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 {} -- cgit v1.2.1