relevance-rcov 0.8.3.3 → 0.8.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -29,18 +29,18 @@
|
|
29
29
|
<tbody>
|
30
30
|
<!-- alternate light/dark here -->
|
31
31
|
<tr class='light'>
|
32
|
-
<td><%=
|
33
|
-
<td class='lines_total'><tt><%=
|
34
|
-
<td class='lines_code'><tt><%=
|
32
|
+
<td><%= fileinfo.name %></td>
|
33
|
+
<td class='lines_total'><tt><%= fileinfo.num_lines %></tt></td>
|
34
|
+
<td class='lines_code'><tt><%= fileinfo.num_code_lines %></tt></td>
|
35
35
|
<td>
|
36
36
|
<table cellspacing='0' cellpadding='0' align='right'>
|
37
37
|
<tr>
|
38
|
-
<td><tt class='coverage_total'><%= "%3.2f" %
|
38
|
+
<td><tt class='coverage_total'><%= "%3.2f" % fileinfo.total_coverage_for_report %>%</tt> </td>
|
39
39
|
<td>
|
40
40
|
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
41
41
|
<tr>
|
42
|
-
<td class='covered' width='<%=
|
43
|
-
<td class='uncovered' width='<%= 100 -
|
42
|
+
<td class='covered' width='<%= fileinfo.total_coverage_for_report.round %>'></td>
|
43
|
+
<td class='uncovered' width='<%= 100 - fileinfo.total_coverage_for_report.round %>'></td>
|
44
44
|
</tr>
|
45
45
|
</table>
|
46
46
|
</td>
|
@@ -50,12 +50,12 @@
|
|
50
50
|
<td>
|
51
51
|
<table cellspacing='0' cellpadding='0' align='right'>
|
52
52
|
<tr>
|
53
|
-
<td><tt class='coverage_code'><%= "%3.2f" %
|
53
|
+
<td><tt class='coverage_code'><%= "%3.2f" % fileinfo.code_coverage_for_report %>%</tt> </td>
|
54
54
|
<td>
|
55
55
|
<table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
|
56
56
|
<tr>
|
57
|
-
<td class='covered' width='<%=
|
58
|
-
<td class='uncovered' width='<%= 100 -
|
57
|
+
<td class='covered' width='<%= fileinfo.code_coverage_for_report.round %>'/>
|
58
|
+
<td class='uncovered' width='<%= 100 - fileinfo.code_coverage_for_report.round %>'/>
|
59
59
|
</tr>
|
60
60
|
</table>
|
61
61
|
</td>
|
@@ -63,9 +63,9 @@
|
|
63
63
|
</table>
|
64
64
|
</td>
|
65
65
|
</tr>
|
66
|
-
<%
|
67
|
-
<% line =
|
68
|
-
<% count =
|
66
|
+
<% fileinfo.num_lines.times do |i| %>
|
67
|
+
<% line = fileinfo.lines[i].chomp %>
|
68
|
+
<% count = fileinfo.counts[i] %>
|
69
69
|
<tr class="<%= line_css(i) %>">
|
70
70
|
<td colspan="5"><pre><a name="line<%= i.next %>"></a><%= i.next %> <%= line %></pre></td>
|
71
71
|
</tr>
|
data/lib/rcov/version.rb
CHANGED