tools/code_coverage/coverage_utils.py
def CalculatePerComponentCoverageSummary(self,
                                           per_directory_coverage_summary):
    """Calculates per component coverage summary."""
    logging.debug('Calculating per-component coverage summary.')
    per_component_coverage_summary = defaultdict(lambda: CoverageSummary())

    for component in self.component_to_directories:
      for directory in self.component_to_directories[component]:
        absolute_directory_path = GetFullPath(directory)
        if absolute_directory_path in per_directory_coverage_summary:
          per_component_coverage_summary[component].AddSummary(
              per_directory_coverage_summary[absolute_directory_path])

    logging.debug('Finished calculating per-component coverage summary.')
    return per_component_coverage_summary
Calculates per component coverage summary.
Calculates per component coverage summary.
Calculates per component coverage summary .
def CalculatePerComponentCoverageSummary(self,
                                           per_directory_coverage_summary):
    logging.debug('Calculating per-component coverage summary.')
    per_component_coverage_summary = defaultdict(lambda: CoverageSummary())
    for component in self.component_to_directories:
      for directory in self.component_to_directories[component]:
        absolute_directory_path = GetFullPath(directory)
        if absolute_directory_path in per_directory_coverage_summary:
          per_component_coverage_summary[component].AddSummary(
              per_directory_coverage_summary[absolute_directory_path])
    logging.debug('Finished calculating per-component coverage summary.')
    return per_component_coverage_summary
def CalculatePerComponentCoverageSummary ( self , per_directory_coverage_summary ) : logging . debug ( 'Calculating per-component coverage summary.' ) per_component_coverage_summary = defaultdict ( lambda : CoverageSummary ( ) ) for component in self . component_to_directories : for directory in self . component_to_directories [ component ] : absolute_directory_path = GetFullPath ( directory ) if absolute_directory_path in per_directory_coverage_summary : per_component_coverage_summary [ component ] . AddSummary ( per_directory_coverage_summary [ absolute_directory_path ] ) logging . debug ( 'Finished calculating per-component coverage summary.' ) return per_component_coverage_summary
Calculates per component coverage summary.
Calculates per component coverage summary .
"""Calculates per component coverage summary."""
self
per_directory_coverage_summary