diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-27 19:28:02 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-27 19:28:02 -0500 |
commit | 82d7b2bec95db01265eb68707e807d89bb0b1677 (patch) | |
tree | 1dfd923a8bd2baa69527154713039ce6d85b4848 /tests/plugin1.py | |
parent | 0d8e1f7783171c9c4f666f5b759322c5f27ebeb0 (diff) | |
download | python-coveragepy-git-82d7b2bec95db01265eb68707e807d89bb0b1677.tar.gz |
Finished the plugin2 test of a dynamic tracing plugin.
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r-- | tests/plugin1.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py index 21e64aeb..c7660024 100644 --- a/tests/plugin1.py +++ b/tests/plugin1.py @@ -19,8 +19,10 @@ class Plugin(coverage.CoveragePlugin): class FileTracer(coverage.plugin.FileTracer): + """A FileTracer emulating a simple static plugin.""" + def __init__(self, filename): - """xyz.py was actually sourced from ABC.zz""" + """Claim that xyz.py was actually sourced from ABC.zz""" self._filename = filename self._source_filename = os.path.join( "/src", @@ -37,9 +39,11 @@ class FileTracer(coverage.plugin.FileTracer): class FileReporter(coverage.plugin.FileReporter): + """Dead-simple FileReporter.""" def get_parser(self, exclude=None): return PluginParser() class PluginParser(CodeParser): + """CodeParser hard-coded for a test in test_plugins.py.""" def parse_source(self): return set([105, 106, 107, 205, 206, 207]), set([]) |