Coverage for <%= @source_file_name %>

<% if @total_lines > 0 %> <% else %> <% end %> <% if @total_branches > 0 %> <% else %> <% end %>
Line Coverage:<%= @covered_lines %> / <%= @total_lines %> = <%= (100.0 * @covered_lines / @total_lines).to_i %>%-
Branch Coverage:<%= @covered_branches %> / <%= @total_branches %> = <%= (100.0 * @covered_branches / @total_branches).to_i %>%-

<% source_file_lines.each_with_index do |line, i| %> <% line_number = i + 1 %> <% line_execution_count = file_coverage.get_line_count(line_number) %> <% if line_execution_count %> <% if line_execution_count > 0 %> <% row_coverage_style = "covered" %> <% else %> <% row_coverage_style = "uncovered" %> <% end %> <% else %> <% row_coverage_style = "normal" %> <% end %> <% evenodd = i & 1 == 0 ? 'even' : 'odd' %> <% end %>
BC LC Line Source
<% if branches = file_coverage.get_branches(line_number) %> <% branches.each do |branch_id, branch_coverage| %> <% if branch_coverage[:taken_count] > 0 %> <% branch_coverage_style = "covered" %> <% else %> <% branch_coverage_style = "uncovered" %> <% end %> <% end %>
<% if branch_coverage[:branch_info] %> (<%= branch_coverage[:branch_info] %>) <% end %> <%= branch_coverage[:taken_count] %>
<% end %>
<%= line_execution_count %> <%= line_number %> <%= CGI.escape_html(line.chomp).gsub("\t", " " * 4).gsub(" ", " ") %>