parameters: (self)
docstring: Updates the coverage summary based on covered lines.
docstring_summary: Updates the coverage summary based on covered lines.
docstring_tokens: Updates the coverage summary based on covered lines .
function: def UpdateCoverage(self):
      """Updates the coverage summary based on covered lines."""
      exe = instr = cov = 0
      for l in self.lines.itervalues():
        exe += 1
        if l is not None:
          instr += 1
          if l == 1:
            cov += 1
  
      # Add stats that always exist
      self.stats = CoverageStats(lines_executable=exe,
                                 lines_instrumented=instr,
                                 lines_covered=cov,
                                 files_executable=1)
  
      # Add conditional stats
      if cov:
        self.stats['files_covered'] = 1
      if instr or self.in_lcov:
        self.stats['files_instrumented'] = 1
function_tokens: def UpdateCoverage ( self ) : exe = instr = cov = 0 for l in self . lines . itervalues ( ) : exe += 1 if l is not None : instr += 1 if l == 1 : cov += 1 # Add stats that always exist self . stats = CoverageStats ( lines_executable = exe , lines_instrumented = instr , lines_covered = cov , files_executable = 1 ) # Add conditional stats if cov : self . stats [ 'files_covered' ] = 1 if instr or self . in_lcov : self . stats [ 'files_instrumented' ] = 1