diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-08 19:30:37 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-08 19:30:37 -0500 |
commit | 8cb63e1209a3fc2c677b736373a1d69f6dfd50ba (patch) | |
tree | 82bbef30da5cd50dfeccd31f4814650825d6bcc2 /coverage/collector.py | |
parent | c690a7f0dd1ccf232bb54202ce1a610f2f4e4269 (diff) | |
download | python-coveragepy-8cb63e1209a3fc2c677b736373a1d69f6dfd50ba.tar.gz |
Clean up.
Diffstat (limited to 'coverage/collector.py')
-rw-r--r-- | coverage/collector.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/coverage/collector.py b/coverage/collector.py index 6a2caf8..1a831c1 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -127,7 +127,9 @@ class Collector(object): tracing functions make the faster more sophisticated trace function not operate properly. - TODO: `branch` + If `branch` is true, then branches will be measured. This involves + collecting data on which statements followed each other (arcs). Use + `get_arc_data` to get the arc data. """ self.should_trace = should_trace @@ -245,7 +247,10 @@ class Collector(object): """Return the arc data collected. Data is { filename: { (l1, l2): None, ...}, ...} - + + Note that no data is collected or returned if the Collector wasn't + created with `branch` true. + """ if self.branch: return self.data |