コード例 #1
0
ファイル: command.py プロジェクト: tonyle/SublimePHPCoverage
    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
ファイル: mediator.py プロジェクト: tonyle/SublimePHPCoverage
 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 = {}