We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f622d commit f75df50Copy full SHA for f75df50
views/source_file.erb
@@ -42,9 +42,10 @@
42
<% if line.skipped? %><span class="hits">skipped</span><% end %>
43
44
<% if branchable_result? %>
45
- <% if source_file.branchable_line?(line.number) %>
46
- <span class="hits">
47
- <%= source_file.branch_per_line(line.number) %>
+ <% source_file.branches_for_line(line.number).each do |hit_count, indicator| %>
+ <% positive_or_negative = indicator == "+" ? "positive" : "negative" %>
+ <span class="hits" title="<%= positive_or_negative%> branch hit <%= hit_count %> times">
48
+ <%= hit_count %>, <%= indicator %>
49
</span>
50
<% end %>
51
0 commit comments