diff options
Diffstat (limited to 'coverage/files.py')
-rw-r--r-- | coverage/files.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coverage/files.py b/coverage/files.py index d74b4d79..741b456f 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -83,6 +83,9 @@ class TreeMatcher(object): def __init__(self, directories): self.dirs = directories[:] + def __repr__(self): + return "<TreeMatcher %r>" % self.dirs + def add(self, directory): """Add another directory to the list we match for.""" self.dirs.append(directory) @@ -104,6 +107,9 @@ class FnmatchMatcher(object): def __init__(self, pats): self.pats = pats[:] + def __repr__(self): + return "<FnmatchMatcher %r>" % self.pats + def match(self, fpath): """Does `fpath` match one of our filename patterns?""" for pat in self.pats: |