DebugClients/Python3/coverage/plugin.py

changeset 5051
3586ebd9fac8
parent 4489
d0d6e4ad31bd
diff -r 04e5dfbd3f3d -r 3586ebd9fac8 DebugClients/Python3/coverage/plugin.py
--- a/DebugClients/Python3/coverage/plugin.py	Sat Jul 23 13:33:54 2016 +0200
+++ b/DebugClients/Python3/coverage/plugin.py	Sun Jul 24 12:01:01 2016 +0200
@@ -324,11 +324,26 @@
         executable line number to a count of how many exits it has.
 
         To be honest, this feels wrong, and should be refactored.  Let me know
-        if you attempt to implement this...
+        if you attempt to implement this method in your plugin...
 
         """
         return {}
 
+    def missing_arc_description(self, start, end, executed_arcs=None):     # pylint: disable=unused-argument
+        """Provide an English sentence describing a missing arc.
+
+        The `start` and `end` arguments are the line numbers of the missing
+        arc. Negative numbers indicate entering or exiting code objects.
+
+        The `executed_arcs` argument is a set of line number pairs, the arcs
+        that were executed in this file.
+
+        By default, this simply returns the string "Line {start} didn't jump
+        to {end}".
+
+        """
+        return "Line {start} didn't jump to line {end}".format(start=start, end=end)
+
     def source_token_lines(self):
         """Generate a series of tokenized lines, one for each line in `source`.
 

eric ide

mercurial