Sha256: 2c2df8a053a77fb50bd9c3c1a279b7bb4d868a2ead11da2ba2fbfc2f38045627

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

<div class="file_list_container">
  <h2 id="<%= title.gsub(/[^a-zA-Z]/, '') %>">
    <%= title %>
    (<span class="<%= coverage_css_class(coverage(source_files)) %>"><%= coverage(source_files).round(2) %>%</span>)
  </h2>
  <div>
    <b><%= source_files.length %></b> files in total.
    <b><%= lines_of_code(source_files) %></b> relevant lines. 
    <span class="green"><b><%= lines_covered(source_files) %></b> lines covered</span> and
    <span class="red"><b><%= lines_missed(source_files) %></b> lines missed </span>
  </div>
  <table class="file_list">
    <thead>
      <tr>
        <th>File</th>
        <th>% covered</th>
        <th>Lines</th>
        <th>Relevant Lines</th>
        <th>Lines covered</th>
        <th>Lines missed</th>
      </tr>
    </thead>
    <tbody>
      <% source_files.each do |source_file| %>
      <tr>
        <td><%= link_to_source_file(source_file) %></td>
        <td class="<%= coverage_css_class(source_file.covered_percent) %>"><%= source_file.covered_percent.round(2).to_s %> %</td>
        <td><%= source_file.lines.count %></td>
        <td><%= source_file.covered_lines.count + source_file.missed_lines.count %></td>
        <td><%= source_file.covered_lines.count %></td>
        <td><%= source_file.missed_lines.count %></td>
      </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simplecov-html-0.3.4 views/file_list.erb
simplecov-html-0.3.3 views/file_list.erb
simplecov-html-0.3.2 views/file_list.erb
simplecov-html-0.3.1 views/file_list.erb
simplecov-html-0.3.0 views/file_list.erb