parameters: (self, lcov_data)
docstring: Adds coverage from LCOV-formatted data.
  
      Args:
        lcov_data: An iterable returning lines of data in LCOV format.  For
            example, a file or list of strings.
docstring_summary: Adds coverage from LCOV-formatted data.
docstring_tokens: Adds coverage from LCOV - formatted data .
function: def ParseLcovData(self, lcov_data):
      """Adds coverage from LCOV-formatted data.
  
      Args:
        lcov_data: An iterable returning lines of data in LCOV format.  For
            example, a file or list of strings.
      """
      cov_file = None
      cov_lines = None
      for line in lcov_data:
        line = line.strip()
        if line.startswith('SF:'):
          # Start of data for a new file; payload is filename
          cov_file = self.GetCoveredFile(line[3:], add=True)
          if cov_file:
            cov_lines = cov_file.lines
            cov_file.in_lcov = True       # File was instrumented
        elif not cov_file:
          # Inside data for a file we don't care about - so skip it
          pass
        elif line.startswith('DA:'):
          # Data point - that is, an executable line in current file
          line_no, is_covered = map(int, line[3:].split(','))
          if is_covered:
            # Line is covered
            cov_lines[line_no] = 1
          elif cov_lines.get(line_no) != 1:
            # Line is not covered, so track it as uncovered
            cov_lines[line_no] = 0
        elif line == 'end_of_record':
          cov_file.UpdateCoverage()
          cov_file = None
function_tokens: def ParseLcovData ( self , lcov_data ) : cov_file = None cov_lines = None for line in lcov_data : line = line . strip ( ) if line . startswith ( 'SF:' ) : # Start of data for a new file; payload is filename cov_file = self . GetCoveredFile ( line [ 3 : ] , add = True ) if cov_file : cov_lines = cov_file . lines cov_file . in_lcov = True # File was instrumented elif not cov_file : # Inside data for a file we don't care about - so skip it pass elif line . startswith ( 'DA:' ) : # Data point - that is, an executable line in current file line_no , is_covered = map ( int , line [ 3 : ] . split ( ',' ) ) if is_covered : # Line is covered cov_lines [ line_no ] = 1 elif cov_lines . get ( line_no ) != 1 : # Line is not covered, so track it as uncovered cov_lines [ line_no ] = 0 elif line == 'end_of_record' : cov_file . UpdateCoverage ( ) cov_file = None