예제 #1
0
    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
예제 #2
0
 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()
예제 #3
0
 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 = {}