diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-03-27 13:44:49 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-03-27 13:44:49 -0400 |
commit | 3e03a20a7a95aa9b5bd9d11b643489e22682832f (patch) | |
tree | d5e1be7e12977174fdfed3e5ed78b87b81eee406 /coverage/plugin.py | |
parent | 531323862667b0764b09d33efbd803cffc4e238c (diff) | |
download | python-coveragepy-git-3e03a20a7a95aa9b5bd9d11b643489e22682832f.tar.gz |
Better descriptions of missing one-line executables. Part of #475
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r-- | coverage/plugin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py index 97d9c16e..a7b95466 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -329,9 +329,15 @@ class FileReporter(object): """ return {} - def missing_arc_description(self, start, end): + 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}". |