class SimpleCov::Formatter::JSONFormatter::SourceFileFormatter

def line_coverage_section

def line_coverage_section
  covered = @source_file.covered_lines.size
  missed = @source_file.missed_lines.size
  {
    lines: @source_file.lines.map { |line| format_line(line) },
    lines_covered_percent: @source_file.covered_percent,
    covered_lines: covered,
    missed_lines: missed,
    omitted_lines: @source_file.never_lines.size,
    total_lines: covered + missed
  }
end