예제 #1
0
    def annotate(
        self,
        morfs=None,
        directory=None,
        ignore_errors=None,
        omit=None,
        include=None,
        contexts=None,
    ):
        """Annotate a list of modules.

        Each module in `morfs` is annotated.  The source is written to a new
        file, named with a ",cover" suffix, with each line prefixed with a
        marker to indicate the coverage of the line.  Covered lines have ">",
        excluded lines have "-", and missing lines have "!".

        See :meth:`report` for other arguments.

        """
        self.config.from_args(
            ignore_errors=ignore_errors,
            report_omit=omit,
            report_include=include,
            report_contexts=contexts,
        )
        reporter = AnnotateReporter(self)
        reporter.report(morfs, directory=directory)
예제 #2
0
 def annotate(self,
              morfs=None,
              directory=None,
              ignore_errors=None,
              omit=None,
              include=None):
     self._harvest_data()
     self.config.from_args(ignore_errors=ignore_errors,
                           omit=omit,
                           include=include)
     reporter = AnnotateReporter(self, self.config)
     reporter.report(morfs, directory=directory)
예제 #3
0
파일: control.py 프로젝트: samucc/kuma
 def annotate(self, morfs=None, directory=None, ignore_errors=False,
                 omit_prefixes=None):
     """Annotate a list of modules.
     
     Each module in `morfs` is annotated.  The source is written to a new
     file, named with a ",cover" suffix, with each line prefixed with a
     marker to indicate the coverage of the line.  Covered lines have ">",
     excluded lines have "-", and missing lines have "!".
     
     """
     reporter = AnnotateReporter(self, ignore_errors)
     reporter.report(
         morfs, directory=directory, omit_prefixes=omit_prefixes)
예제 #4
0
    def annotate(self, morfs=None, directory=None, ignore_errors=None, omit=None, include=None):
        """Annotate a list of modules.

        Each module in `morfs` is annotated.  The source is written to a new
        file, named with a ",cover" suffix, with each line prefixed with a
        marker to indicate the coverage of the line.  Covered lines have ">",
        excluded lines have "-", and missing lines have "!".

        See `coverage.report()` for other arguments.

        """
        self.config.from_args(ignore_errors=ignore_errors, omit=omit, include=include)
        reporter = AnnotateReporter(self, self.config.ignore_errors)
        reporter.report(morfs, config=self.config, directory=directory)
예제 #5
0
    def annotate(self,
                 morfs=None,
                 directory=None,
                 ignore_errors=None,
                 omit=None,
                 include=None):
        """Annotate a list of mod_auth.

        Each module in `morfs` is annotated.  The source is written to a new
        file, named with a ",cover" suffix, with each line prefixed with a
        marker to indicate the coverage of the line.  Covered lines have ">",
        excluded lines have "-", and missing lines have "!".

        See `coverage.report()` for other arguments.

        """
        self._harvest_data()
        self.config.from_args(ignore_errors=ignore_errors,
                              omit=omit,
                              include=include)
        reporter = AnnotateReporter(self, self.config)
        reporter.report(morfs, directory=directory)
예제 #6
0
    def annotate(
        self,
        morfs=None,
        directory=None,
        ignore_errors=None,
        omit=None,
        include=None,
        contexts=None,
    ):
        """Annotate a list of modules.

        .. note::

            This method has been obsoleted by more modern reporting tools,
            including the :meth:`html_report` method.  It will be removed in a
            future version.

        Each module in `morfs` is annotated.  The source is written to a new
        file, named with a ",cover" suffix, with each line prefixed with a
        marker to indicate the coverage of the line.  Covered lines have ">",
        excluded lines have "-", and missing lines have "!".

        See :meth:`report` for other arguments.

        """
        print("The annotate command will be removed in a future version.")
        print("Get in touch if you still use it: [email protected]")

        with override_config(
                self,
                ignore_errors=ignore_errors,
                report_omit=omit,
                report_include=include,
                report_contexts=contexts,
        ):
            reporter = AnnotateReporter(self)
            reporter.report(morfs, directory=directory)
예제 #7
0
 def annotate(self, morfs = None, directory = None, ignore_errors = None, omit = None, include = None):
     self._harvest_data()
     self.config.from_args(ignore_errors=ignore_errors, omit=omit, include=include)
     reporter = AnnotateReporter(self, self.config)
     reporter.report(morfs, directory=directory)