From 6df11611c656dc15fa47e3044987a87cc32c43aa Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 24 Mar 2011 22:49:37 -0400 Subject: Incremental HTML generation. Some cleanup would be good. --- coverage/report.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'coverage/report.py') diff --git a/coverage/report.py b/coverage/report.py index 0fb353a..5e2137f 100644 --- a/coverage/report.py +++ b/coverage/report.py @@ -61,7 +61,13 @@ class Reporter(object): def report_files(self, report_fn, morfs, config, directory=None): """Run a reporting function on a number of morfs. - `report_fn` is called for each relative morf in `morfs`. + `report_fn` is called for each relative morf in `morfs`. It is called + as:: + + report_fn(code_unit, analysis) + + where `code_unit` is the `CodeUnit` for the morf, and `analysis` is + the `Analysis` for the morf. `config` is a CoverageConfig instance. -- cgit v1.2.1