code: def parse_lcov_file_info(args, filepath, line_iter, line_coverage_re, file_end_string):
      
      coverage = []
      lines_covered = []
      for line in line_iter:
          if line != "end_of_record":
              line_coverage_match = line_coverage_re.match(line)
              if line_coverage_match:
                  line_no = line_coverage_match.group(1)
                  cov_count = int(line_coverage_match.group(2))
                  if args.max_cov_count:
                      if cov_count > args.max_cov_count:
                          cov_count = args.max_cov_count + 1
                  lines_covered.append((line_no, cov_count))
          else:
              break
  
      num_code_lines = len([line.rstrip('\n') for line in open(filepath, 'r')])
      coverage = [None] * num_code_lines
      for line_covered in lines_covered:
          coverage[int(line_covered[0]) - 1] = line_covered[1]
  
      return coverage
docs: Parse the file content in lcov info file