Sha256: fb48e6e9bc1ac2cb82fc2e493680c5ebeeabd97c93df54e91b1aef7e3a3f2dc9

Contents?: true

Size: 1.94 KB

Versions: 9

Compression:

Stored size: 1.94 KB

Contents

<div class="source_table" id="<%= id source_file %>">
  <div class="header">
    <h3><%= shortened_filename source_file %></h3>
    <h4>
      <%= covered_percent(source_file.covered_percent) %>
      lines covered
    </h4>

    <% if branchable_result? %>
      <h4>
        <%= covered_percent(source_file.branches_coverage_percent) %>
        branches covered
      </h4>
    <% end %>

    <div class="t-line-summary">
      <b><%= source_file.lines_of_code %></b> relevant lines.
      <span class="green"><b><%= source_file.covered_lines.count %></b> lines covered</span> and
      <span class="red"><b><%= source_file.missed_lines.count %></b> lines missed.</span>
    </div>

    <% if branchable_result? %>
      <div class="t-branch-summary">
          <span><b><%= source_file.total_branches.count %></b> total branches, </span>
          <span class="green"><b><%= source_file.covered_branches.count %></b> branches covered</span> and
          <span class="red"><b><%= source_file.missed_branches.count %></b> branches missed.</span>
      </div>
    <% end %>

  </div>

  <pre>
    <ol>
      <% source_file.lines.each do |line| %>
        <div>
          <li class="<%= line_status?(source_file, line) %>" data-hits="<%= line.coverage ? line.coverage : '' %>" data-linenumber="<%= line.number %>">
            <% if line.covered? %><span class="hits"><%= line.coverage %></span><% end %>
            <% if line.skipped? %><span class="hits">skipped</span><% end %>

            <% if branchable_result? %>
              <% source_file.branches_for_line(line.number).each do |branch_type, hit_count| %>
                <span class="hits" title="<%= branch_type%> branch hit <%= hit_count %> times">
                  <%= branch_type %>: <%= hit_count %>
                </span>
              <% end %>
            <% end %>

            <code class="ruby"><%= CGI.escapeHTML(line.src.chomp) %></code>
          </li>
        </div>
      <% end %>
    </ol>
  </pre>
</div>

Version data entries

9 entries across 9 versions & 6 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/simplecov-html-0.12.3/views/source_file.erb
simplecov-html-formatter-0.12.3.1 views/source_file.erb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/simplecov-html-0.12.3/views/source_file.erb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.12.3/views/source_file.erb
simplecov-html-0.12.3 views/source_file.erb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/simplecov-html-0.12.2/views/source_file.erb
simplecov-html-0.12.2 views/source_file.erb
simplecov-html-0.12.1 views/source_file.erb
simplecov-html-0.11.0 views/source_file.erb