diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-28 06:21:34 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-28 06:21:34 -0400 |
commit | c2636f945f5c46597f71479ac8eae3a141110cf5 (patch) | |
tree | 5c048b46eb7917f004dcf507550b3b989761f5e4 /coverage/plugin.py | |
parent | 507d94b272fb73fac476fa6cdc6b023f5c88bc79 (diff) | |
download | python-coveragepy-git-c2636f945f5c46597f71479ac8eae3a141110cf5.tar.gz |
Allow plugins to report files they haven't executed.
By Emil Madsen, from: https://github.com/nedbat/coveragepy/pull/28
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r-- | coverage/plugin.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py index fc95eeec..43f291b3 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -89,6 +89,15 @@ class CoveragePlugin(object): """ _needs_to_implement(self, "file_reporter") + def find_executable_files(self, src_dir): + """Yield all of the executable files in `dirname`, recursively. + + Executability is a plugin-specific property, but generally means files + which would have been considered for coverage analysis, had they been + included automatically. + """ + return [] + def sys_info(self): """Get a list of information useful for debugging. |