| 1 |
{% extends "base.html" %} |
| 2 |
{% import "repo_tabs.html" as m %} |
| 3 |
{% block title %}{{ file.path }} · Coverage · {{ repo.owner }}/{{ repo.name }}{% endblock %} |
| 4 |
{% block tabs %}{% call m::tabs(repo, "coverage") %}{% endblock %} |
| 5 |
{% block content %} |
| 6 |
<div class="head"><h1><a href="{{ repo.url }}/coverage?report={{ report.id }}">Coverage</a> / {{ file.path }} <small class="{{ self.class_of(file.percent()) }}">{{ self.pct(file.percent()) }}</small></h1> |
| 7 |
<p class="small mute">{{ file.lines_hit }} of {{ file.lines_found }} lines run{% if file.functions_found > 0 %}, {{ file.functions_hit }} of {{ file.functions_found }} functions{% endif %}{% if file.branches_found > 0 %}, {{ file.branches_hit }} of {{ file.branches_found }} branches{% endif %} · <a href="{{ repo.url }}/flow/{{ report.run_number }}">run #{{ report.run_number }}</a> on {{ report.bookmark }} · <span class="cov-key cov-hit">run</span> <span class="cov-key cov-miss">missed</span></p></div> |
| 8 |
{% if let Some(n) = note %}<p class="mute">{{ n }}</p>{% endif %} |
| 9 |
{% if !lines.is_empty() %} |
| 10 |
<table class="code cov-code"> |
| 11 |
{% for l in lines %}<tr id="L{{ l.number }}" class="{% if let Some(h) = l.hits %}{% if *h > 0 %}cov-hit{% else %}cov-miss{% endif %}{% endif %}"><td class="n">{{ l.number }}</td><td class="cov-hits">{% if let Some(h) = l.hits %}{{ h }}×{% endif %}</td><td class="t"><pre>{{ l.html|safe }}</pre></td></tr> |
| 12 |
{% endfor %}</table> |
| 13 |
{% endif %} |
| 14 |
{% endblock %} |