summaryrefslogtreecommitdiff
path: root/tests/plugin1.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-11-27 19:28:02 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-11-27 19:28:02 -0500
commite754218cdda5fdb2b20b1c982c3bc2c357fba967 (patch)
tree4c3af3dc4738ff52e758996310a80c8fa7ccc82f /tests/plugin1.py
parent40bc892993e7bbf6616e37c5ea963e0079cb0a6a (diff)
downloadpython-coveragepy-e754218cdda5fdb2b20b1c982c3bc2c357fba967.tar.gz
Finished the plugin2 test of a dynamic tracing plugin.
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r--tests/plugin1.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py
index 21e64ae..c766002 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([])