diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-15 13:41:35 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-15 13:41:35 -0400 |
commit | 1df530629016e31cef71c98ce70df315499161fb (patch) | |
tree | eeab8a877697093141e6c5b1fe38ef4dd7ffe7e1 /coverage/plugin.py | |
parent | be4a96d85bd5dd8328fcde9a77ee9a25f096881c (diff) | |
download | python-coveragepy-1df530629016e31cef71c98ce70df315499161fb.tar.gz |
Separate the plugin API docs from the 'using plugins' docs.
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r-- | coverage/plugin.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py index ac40704..2f28777 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -82,7 +82,9 @@ class CoveragePlugin(object): """Get the :class:`FileReporter` class to use for a file. This will only be invoked if `filename` returns non-None from - :meth:`file_tracer`. It's an error to return None. + :meth:`file_tracer`. It's an error to return None from this method. + + Returns a :class:`FileReporter` object to use to report on `filename`. """ _needs_to_implement(self, "file_reporter") @@ -106,6 +108,9 @@ class FileTracer(object): way you like. A natural choice would be to pass the file name given to `file_tracer`. + `FileTracer` objects should only be created in the + :meth:`CoveragePlugin.file_tracer` method. + See :ref:`howitworks` for details of the different coverage.py phases. """ @@ -181,6 +186,9 @@ class FileReporter(object): See :ref:`howitworks` for details of the different coverage.py phases. + `FileReporter` objects should only be created in the + :meth:`CoveragePlugin.file_reporter` method. + There are many methods here, but only :meth:`lines` is required, to provide the set of executable lines in the file. |