Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: tools/telemetry/third_party/coverage/doc/api.rst

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 .. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 .. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
3
4 .. _api:
5
6 ===============
7 Coverage.py API
8 ===============
9
10 .. :history: 20090524T134300, brand new docs.
11 .. :history: 20090613T164000, final touches for 3.0
12 .. :history: 20100221T151500, docs for 3.3 (on the plane back from PyCon)
13 .. :history: 20100725T211700, updated for 3.4.
14 .. :history: 20121111T235800, added a bit of clarification.
15 .. :history: 20140819T132600, change class name to Coverage
16
17
18 The API to coverage.py is very simple, contained in a module called `coverage`.
19 Most of the interface is in the :class:`coverage.Coverage` class. Methods on
20 the Coverage object correspond roughly to operations available in the command
21 line interface. For example, a simple use would be::
22
23 import coverage
24
25 cov = coverage.Coverage()
26 cov.start()
27
28 # .. call your code ..
29
30 cov.stop()
31 cov.save()
32
33 cov.html_report()
34
35 The :class:`coverage.CoverageData` class provides access to coverage data
36 stored in coverage.py data files.
37
38 .. toctree::
39 :maxdepth: 1
40
41 api_coverage
42 api_coveragedata
43 api_plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698