summaryrefslogtreecommitdiff
path: root/coverage/plugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-08 09:54:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-08 09:54:24 -0500
commit429d6ecbc19bf4e742170828e0433481ee0d3b19 (patch)
tree81305a30496855756ef01237518a532d3bca1279 /coverage/plugin.py
parentf0eb7f779f14cce5fc34581439c25cfa5c13d23a (diff)
downloadpython-coveragepy-429d6ecbc19bf4e742170828e0433481ee0d3b19.tar.gz
missing_arc_description is better than arc_destination_description. One test broken.
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r--coverage/plugin.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 095b268..85521e3 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -329,20 +329,20 @@ class FileReporter(object):
"""
return {}
- def arc_destination_description(self, lineno):
- """Provide an English phrase describing an arc destination.
+ def missing_arc_description(self, start, end):
+ """Provide an English phrase describing a missing arc.
For an arc like (123, 456), it should read well to use the phrase like
this::
- "Line {0} didn't {1}".format(123, arc_destination_description(456))
+ "Line {0} didn't {1}".format(123, missing_arc_description(123, 456))
TODO: say more.
- By default, this simply returns the string "jump to {lineno}".
+ By default, this simply returns the string "jump to {end}".
"""
- return "jump to line {lineno}".format(lineno=lineno)
+ return "jump to line {end}".format(end=end)
def source_token_lines(self):
"""Generate a series of tokenized lines, one for each line in `source`.