def get_matcher(self): """ Gets the matcher for the command. If none is set, it instantiates an instance of the default Matcher class. """ if not self.matcher: self.matcher = Matcher() return self.matcher
def setUp(self): config.loaded = True # config.debug = True config.include = [r"foo.*\.php$", r"win[\\/]do[\\/]ws\.php"] config.exclude = [r"foo.*bar\.php$", "foofoo\.php$"] self.matcher = Matcher()
def __init__(self, callbacks={}, coverage_finder=None, matcher=None): self.coverage_finder = coverage_finder or CoverageFinder() self.matcher = matcher or Matcher() self.callbacks = callbacks self.watchers = {}