コード例 #1
0
    def file_reporter(self, filename):      # pylint: disable=unused-argument
        """Return the FileReporter class to use for filename.

        This will only be invoked if `filename` returns non-None from
        :meth:`file_tracer`.  It's an error to return None.

        """
        _needs_to_implement(self, "file_reporter")
コード例 #2
0
ファイル: plugin.py プロジェクト: th0/test2
    def file_reporter(self, filename):  # pylint: disable=unused-argument
        """Return the FileReporter class to use for filename.

        This will only be invoked if `filename` returns non-None from
        :meth:`file_tracer`.  It's an error to return None.

        """
        _needs_to_implement(self, "file_reporter")
コード例 #3
0
ファイル: plugin.py プロジェクト: we-are-prot/tsampi-0
    def file_reporter(self, filename):      # pylint: disable=unused-argument
        """Get the :class:`FileReporter` class to use for a file.

        This will only be invoked if `filename` returns non-None from
        :meth:`file_tracer`.  It's an error to return None from this method.

        Returns a :class:`FileReporter` object to use to report on `filename`.

        """
        _needs_to_implement(self, "file_reporter")
コード例 #4
0
ファイル: plugin.py プロジェクト: we-are-prot/tsampi-0
    def lines(self):
        """Get the executable lines in this file.

        Your plugin must determine which lines in the file were possibly
        executable.  This method returns a set of those line numbers.

        Returns a set of line numbers.

        """
        _needs_to_implement(self, "lines")
コード例 #5
0
ファイル: plugin.py プロジェクト: ziadsawalha/coveragepy
    def source_filename(self):
        """The source filename for this file.

        This may be any filename you like.  A key responsibility of a plugin is
        to own the mapping from Python execution back to whatever source
        filename was originally the source of the code.

        Returns the filename to credit with this execution.

        """
        _needs_to_implement(self, "source_filename")
コード例 #6
0
    def source_filename(self):
        """The source filename for this file.

        This may be any filename you like.  A key responsibility of a plugin is
        to own the mapping from Python execution back to whatever source
        filename was originally the source of the code.

        Returns:
            The filename to credit with this execution.

        """
        _needs_to_implement(self, "source_filename")
コード例 #7
0
ファイル: plugin.py プロジェクト: nedbat/coveragepy
    def file_reporter(self, filename):      # pylint: disable=unused-argument
        """Get the :class:`FileReporter` class to use for a file.

        Plug-in type: file tracer.

        This will only be invoked if `filename` returns non-None from
        :meth:`file_tracer`.  It's an error to return None from this method.

        Returns a :class:`FileReporter` object to use to report on `filename`,
        or the string `"python"` to have coverage.py treat the file as Python.

        """
        _needs_to_implement(self, "file_reporter")
コード例 #8
0
ファイル: plugin.py プロジェクト: hugovk/coveragepy
    def file_reporter(self, filename):      # pylint: disable=unused-argument
        """Get the :class:`FileReporter` class to use for a file.

        Plug-in type: file tracer.

        This will only be invoked if `filename` returns non-None from
        :meth:`file_tracer`.  It's an error to return None from this method.

        Returns a :class:`FileReporter` object to use to report on `filename`,
        or the string `"python"` to have coverage.py treat the file as Python.

        """
        _needs_to_implement(self, "file_reporter")
コード例 #9
0
ファイル: plugin.py プロジェクト: we-are-prot/tsampi-0
    def source_filename(self):
        """The source file name for this file.

        This may be any file name you like.  A key responsibility of a plugin
        is to own the mapping from Python execution back to whatever source
        file name was originally the source of the code.

        See :meth:`CoveragePlugin.file_tracer` for details about static and
        dynamic file names.

        Returns the file name to credit with this execution.

        """
        _needs_to_implement(self, "source_filename")
コード例 #10
0
ファイル: plugin.py プロジェクト: th0/test2
 def statements(self):
     _needs_to_implement(self, "statements")
コード例 #11
0
ファイル: plugin.py プロジェクト: LadanP/coveragepy
 def lines(self):
     """Return a set of executable lines"""
     _needs_to_implement(self, "lines")
コード例 #12
0
 def statements(self):
     _needs_to_implement(self, "statements")