Skip to content

Commit 277c011

Browse files
committed
Adapt method coverage templates
1 parent d85b595 commit 277c011

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
GIT
22
remote: https://github.com/simplecov-ruby/simplecov
3-
revision: ce45fa65808a4811074f818f15df0d83d04b5185
3+
revision: 30840d6a6ce47a0aac4836370befcef4f4002ce7
44
specs:
55
simplecov (0.22.0)
66
docile (~> 1.1)
7-
simplecov-html (~> 0.11)
7+
simplecov-html (~> 0.12)
88
simplecov_json_formatter (~> 0.1)
99

1010
PATH
@@ -20,6 +20,8 @@ GEM
2020
docile (1.4.1)
2121
execjs (2.10.0)
2222
ffi (1.17.2)
23+
ffi (1.17.2-arm64-darwin)
24+
ffi (1.17.2-java)
2325
json (2.12.2)
2426
json (2.12.2-java)
2527
language_server-protocol (3.17.0.5)

views/file_list.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<% end %>
8888
<% if method_coverage? %>
8989
<td class="<%= coverage_css_class(source_file.methods_coverage_percent) %> strong cell--number t-file__method-coverage"><%= sprintf("%.2f", source_file.methods_coverage_percent.round(2)) %> %</td>
90-
<td class="cell--number"><%= source_file.total_methods.count %></td>
90+
<td class="cell--number"><%= source_file.methods.count %></td>
9191
<td class="cell--number"><%= source_file.covered_methods.count %></td>
9292
<td class="cell--number"><%= source_file.missed_methods.count %></td>
9393
<% end %>

views/source_file.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<% if method_coverage? %>
3939
<div class="t-method-summary">
40-
<span><b><%= source_file.total_methods.count %></b> total methods, </span>
40+
<span><b><%= source_file.methods.count %></b> total methods, </span>
4141
<span class="green"><b><%= source_file.covered_methods.count %></b> methods covered</span> and
4242
<span class="red"><b><%= source_file.missed_methods.count %></b> methods missed.</span>
4343
</div>

0 commit comments

Comments
 (0)