From 84c9cc21909050a008ac2964ac387feaa2ad0f74 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 16 Oct 2009 07:25:56 -0400 Subject: Start unit testing the arc measurement. In arcs, -1 means enter or exit. --- coverage/data.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/data.py') diff --git a/coverage/data.py b/coverage/data.py index 26dc5aa1..0c1fc3aa 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -198,6 +198,10 @@ class CoverageData: """ return self.lines.get(filename) or {} + def executed_arcs(self, filename): + """A map containing all the arcs executed in `filename`.""" + return self.arcs.get(filename) or {} + def summary(self, fullpath=False): """Return a dict summarizing the coverage data. -- cgit v1.2.1