class SimpleCov::Formatter::JSONFormatter::SourceFileFormatter
def branch_coverage_section
def branch_coverage_section { branches: @source_file.branches.map { |branch| format_branch(branch) }, branches_covered_percent: @source_file.covered_percent(:branch), covered_branches: @source_file.covered_branches.size, missed_branches: @source_file.missed_branches.size, total_branches: @source_file.total_branches.size } end