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/data.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coverage/data.py') diff --git a/coverage/data.py b/coverage/data.py index 5d482ea..3263cb3 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -228,6 +228,11 @@ class CoverageData(object): """A map containing all the arcs executed in `filename`.""" return self.arcs.get(filename) or {} + def add_to_hash(self, filename, hasher): + """Contribute `filename`'s data to the Md5Hash `hasher`.""" + hasher.update(self.executed_lines(filename)) + hasher.update(self.executed_arcs(filename)) + def summary(self, fullpath=False): """Return a dict summarizing the coverage data. -- cgit v1.2.1