class SimpleCov::Formatter::JSONFormatter
def export_formatted_result(result_hash)
def export_formatted_result(result_hash) result_exporter = SimpleCovJSONFormatter::ResultExporter.new(result_hash) result_exporter.export end
def format(result)
def format(result) result_hash = format_result(result) export_formatted_result(result_hash) puts output_message(result) end
def format_result(result)
def format_result(result) result_hash_formater = SimpleCovJSONFormatter::ResultHashFormatter.new(result) result_hash_formater.format end
def output_message(result)
def output_message(result) "JSON Coverage report generated for #{result.command_name} to #{SimpleCov.coverage_path}. \ #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered." end