Skip to content

Commit 1e2605c

Browse files
committed
Adjust report to include more branch related data
1 parent 402bcac commit 1e2605c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
PATH
22
remote: .
33
specs:
4-
simplecov-html (0.11.0.beta1)
4+
simplecov-html (0.11.0.beta2)
55

66
PATH
77
remote: /home/tobi/github/simplecov
88
specs:
9-
simplecov (0.18.0.beta1)
9+
simplecov (0.18.0.beta2)
1010
docile (~> 1.1)
1111
simplecov-html (~> 0.11.0.beta1)
1212

views/source_file.erb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@
4242
<% if line.skipped? %><span class="hits">skipped</span><% end %>
4343

4444
<% if branchable_result? %>
45-
<% source_file.branches_for_line(line.number).each do |hit_count, indicator| %>
46-
<% positive_or_negative = indicator == "+" ? "positive" : "negative" %>
47-
<span class="hits" title="<%= positive_or_negative%> branch hit <%= hit_count %> times">
48-
<%= hit_count %>, <%= indicator %>
45+
<% source_file.branches_for_line(line.number).each do |branch_type, hit_count| %>
46+
<span class="hits" title="<%= branch_type%> branch hit <%= hit_count %> times">
47+
<%= branch_type %>: <%= hit_count %>
4948
</span>
5049
<% end %>
5150
<% end %>

0 commit comments

Comments
 (0)