diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-27 08:56:44 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-27 08:56:44 -0400 |
| commit | 5ce2da2269645f6c1ff48bfa1fff1c6a530ce788 (patch) | |
| tree | 50ec91d9bafe0555dd8dd5f36dd45d318d3c2e34 /doc/api.rst | |
| parent | 905a5c29d6baa1f08bc6ca54c99a731eafb34726 (diff) | |
| parent | a70319af59dc99373fa1b8febd0bbf86b6ca5200 (diff) | |
| download | python-coveragepy-5ce2da2269645f6c1ff48bfa1fff1c6a530ce788.tar.gz | |
Merge trunk
Diffstat (limited to 'doc/api.rst')
| -rw-r--r-- | doc/api.rst | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/api.rst b/doc/api.rst new file mode 100644 index 0000000..279e9db --- /dev/null +++ b/doc/api.rst @@ -0,0 +1,34 @@ +.. _api: + +============ +Coverage API +============ + +The API to coverage.py is very simple, contained in a single module called +coverage containing a single class, also called coverage:: + + import coverage + + cov = coverage.coverage() + +Methods on the coverage object correspond to operations available in the +command line interface. For example, a simple use would be:: + + import coverage + + cov = coverage.coverage() + cov.start() + + # .. run your code .. + + cov.stop() + cov.save() + + +The coverage module +------------------- + +.. module:: coverage + +.. autoclass:: coverage + :members: |
