class SimpleCov::Formatter::LcovFormatter
def format_file(file)
def format_file(file) filename = file.filename.gsub("#{SimpleCov.root}/", './') pieces = [] pieces << "SF:#{filename}" pieces << format_lines(file) if SimpleCov.branch_coverage? branch_data = format_branches(file) pieces << branch_data if branch_data.length > 0 pieces << "BRF:#{file.total_branches.length}" pieces << "BRH:#{file.covered_branches.length}" end pieces << "end_of_record" pieces << "" pieces.join("\n") end