Пример #1
0
    def __init__(self, basename=None, suffix=None, warn=None, debug=None):
        self.filename = os.path.abspath(basename or ".coverage")
        suffix = filename_suffix(suffix)
        if suffix:
            self.filename += "." + suffix
        self._warn = warn
        self._debug = debug

        self._file_map = {}
        self._db = None
        # Are we in sync with the data file?
        self._have_used = False

        self._has_lines = False
        self._has_arcs = False
Пример #2
0
 def _choose_filename(self):
     self._filename = self._basename
     suffix = filename_suffix(self._suffix)
     if suffix:
         self._filename += "." + suffix
Пример #3
0
 def _choose_filename(self):
     self._filename = self._basename
     suffix = filename_suffix(self._suffix)
     if suffix:
         self._filename += "." + suffix