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) %> <% end %>
BC LC Line Source
<% if branches = file_coverage.get_branches(line_number) %> <% branches.each_with_index do |(branch_id, branch_coverage), i| %> <% if i > 0 %>
<% end %> <%= branch_coverage[:taken_count] %> <% if branch_coverage[:branch_info] %> (<%= branch_coverage[:branch_info] %>) <% end %> <% end %> <% end %>
<%= line_execution_count %> <%= line_number %> <%= CGI.escape_html(line.chomp).gsub("\t", " " * 4).gsub(" ", " ") %>