summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-11 19:31:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-11 19:31:29 -0400
commitfa73bbdd2056588571d6c83df22f29d15693cd90 (patch)
tree1eb9b6f2bea4e3537423931efc9cacf8373e42bb
parent32ffaf61d53b0e57f6e5470b351496348d4ac85d (diff)
downloadpython-coveragepy-git-fa73bbdd2056588571d6c83df22f29d15693cd90.tar.gz
Include CoverageData in the docs
-rw-r--r--coverage/data.py11
-rw-r--r--doc/api.rst11
2 files changed, 16 insertions, 6 deletions
diff --git a/coverage/data.py b/coverage/data.py
index 945875c8..197dbd34 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -16,13 +16,16 @@ class CoverageData(object):
* collector: a string identifying the collecting software
* lines: a dict mapping filenames to sorted lists of line numbers
- executed:
- { 'file1': [17,23,45], 'file2': [1,2,3], ... }
+ executed::
+
+ { 'file1': [17,23,45], 'file2': [1,2,3], ... }
+
+ * arcs: a dict mapping filenames to sorted lists of line number pairs::
- * arcs: a dict mapping filenames to sorted lists of line number pairs:
{ 'file1': [(17,23), (17,25), (25,26)], ... }
- * plugins: a dict mapping filenames to plugin names:
+ * plugins: a dict mapping filenames to plugin names::
+
{ 'file1': "django.coverage", ... }
"""
diff --git a/doc/api.rst b/doc/api.rst
index 7c6dda35..268c6133 100644
--- a/doc/api.rst
+++ b/doc/api.rst
@@ -30,8 +30,8 @@ available in the command line interface. For example, a simple use would be::
cov.html_report()
-The coverage module
--------------------
+The Coverage class
+------------------
.. module:: coverage
@@ -40,6 +40,13 @@ The coverage module
:exclude-members: use_cache
+The CoverageData class
+----------------------
+
+.. autoclass:: CoverageData
+ :members:
+
+
Starting coverage automatically
-------------------------------