tools/code_coverage/coverage_utils.py
def GenerateFileViewHtmlIndexFile(self, per_file_coverage_summary,
                                    file_view_index_file_path):
    """Generates html index file for file view."""
    logging.debug('Generating file view html index file as: "%s".',
                  file_view_index_file_path)
    html_generator = CoverageReportHtmlGenerator(
        self.output_dir, file_view_index_file_path, 'Path')
    totals_coverage_summary = CoverageSummary()

    for file_path in per_file_coverage_summary:
      totals_coverage_summary.AddSummary(per_file_coverage_summary[file_path])
      html_generator.AddLinkToAnotherReport(
          self.GetCoverageHtmlReportPathForFile(file_path),
          os.path.relpath(file_path, self.src_root_dir),
          per_file_coverage_summary[file_path])

    html_generator.CreateTotalsEntry(totals_coverage_summary)
    html_generator.WriteHtmlCoverageReport(self.no_component_view,
                                           self.no_file_view)
    logging.debug('Finished generating file view html index file.')
Generates html index file for file view.
Generates html index file for file view.
Generates html index file for file view .
def GenerateFileViewHtmlIndexFile(self, per_file_coverage_summary,
                                    file_view_index_file_path):
    logging.debug('Generating file view html index file as: "%s".',
                  file_view_index_file_path)
    html_generator = CoverageReportHtmlGenerator(
        self.output_dir, file_view_index_file_path, 'Path')
    totals_coverage_summary = CoverageSummary()
    for file_path in per_file_coverage_summary:
      totals_coverage_summary.AddSummary(per_file_coverage_summary[file_path])
      html_generator.AddLinkToAnotherReport(
          self.GetCoverageHtmlReportPathForFile(file_path),
          os.path.relpath(file_path, self.src_root_dir),
          per_file_coverage_summary[file_path])
    html_generator.CreateTotalsEntry(totals_coverage_summary)
    html_generator.WriteHtmlCoverageReport(self.no_component_view,
                                           self.no_file_view)
    logging.debug('Finished generating file view html index file.')
def GenerateFileViewHtmlIndexFile ( self , per_file_coverage_summary , file_view_index_file_path ) : logging . debug ( 'Generating file view html index file as: "%s".' , file_view_index_file_path ) html_generator = CoverageReportHtmlGenerator ( self . output_dir , file_view_index_file_path , 'Path' ) totals_coverage_summary = CoverageSummary ( ) for file_path in per_file_coverage_summary : totals_coverage_summary . AddSummary ( per_file_coverage_summary [ file_path ] ) html_generator . AddLinkToAnotherReport ( self . GetCoverageHtmlReportPathForFile ( file_path ) , os . path . relpath ( file_path , self . src_root_dir ) , per_file_coverage_summary [ file_path ] ) html_generator . CreateTotalsEntry ( totals_coverage_summary ) html_generator . WriteHtmlCoverageReport ( self . no_component_view , self . no_file_view ) logging . debug ( 'Finished generating file view html index file.' )
Generates html index file for file view.
Generates html index file for file view .
"""Generates html index file for file view."""
self
per_file_coverage_summary
file_view_index_file_path