summaryrefslogtreecommitdiff
path: root/coverage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/data.py')
-rw-r--r--coverage/data.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/data.py b/coverage/data.py
index a4bc608..72ce38f 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -219,6 +219,11 @@ class CoverageData(object):
summ[filename_fn(filename)] = len(lines)
return summ
+ def has_arcs(self):
+ """Does this data have arcs?"""
+ return bool(self.arcs)
+
+
if __name__ == '__main__':
# Ad-hoc: show the raw data in a data file.
import pprint, sys