Sha256: 658266b936105224dc1d27b5ebeb1dab485dee95ec064647282772a6e7396fbf
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
<div class="source_table" id="<%= id source_file %>"> <div class="header"> <h3><%= shortened_filename source_file %></h3> <h4> <span class="<%= coverage_css_class(source_file.covered_percent) %>"><%= source_file.covered_percent.round(2).to_s %> %</span> covered <% if Coverband.configuration.web_enable_clear %> <%= button("#{base_path}clear_file?filename=#{source_file.relative_path}", 'clear file coverage') %> <% end %> </h4> <div> <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> <div> Coverage first seen: <%= source_file.first_updated_at %>, last activity recorded: <%= source_file.last_updated_at %> </div> </div> <pre> <ol> <% source_file.lines.each_with_index do |line, index| %> <li class="<%= line.status %>" data-hits="<%= line.coverage ? line.coverage : '' %>" data-linenumber="<%= line.number %>"> <% if line.covered? %><span class="hits"> load: <%= result.file_with_type(source_file, Coverband::EAGER_TYPE).try(:lines).try(:[], index).try(:coverage) || 0 %>, runtime: <%= result.file_with_type(source_file, Coverband::RUNTIME_TYPE).try(:lines).try(:[], index).try(:coverage) || 0 %> all: <%= line.coverage %> </span><% end %> <% if line.skipped? %><span class="hits">skipped</span><% end %> <code class="ruby"><%= CGI.escapeHTML(line.src.chomp) %></code> </li> <% end %> </ol> </pre> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.2.0 | views/source_file.erb |
coverband-4.2.0.rc3 | views/source_file.erb |
coverband-4.2.0.rc2 | views/source_file.erb |