blob: 63cca09ead963fa74e3eddc60b561a3338fc8179 [file] [log] [blame]
Yuke Liaoea228d02018-01-05 19:10:331<table>
Abhishek Arya865fffd2018-05-08 22:16:012 <thead>
3 <tr>
4 <th class="column-entry-bold">{{ table_entry_type }}</th>
5 <th class="column-entry-bold" title=
6 "Line coverage is the percentage of code lines which have been executed at least once. Only executable lines within function bodies are considered to be code lines.">
7 Line Coverage</th>
8 <th class="column-entry-bold" title=
9 "Function coverage is the percentage of functions which have been executed at least once. A function is considered to be executed if any of its instantiations are executed.">
10 Function Coverage</th>
11 <th class="column-entry-bold" title=
12 "Region coverage is the percentage of code regions which have been executed at least once. A code region may span multiple lines (e.g in a large function body with no control flow). However, it's also possible for a single line to contain multiple code regions (e.g in 'return x || y &amp;&amp; z').">
13 Region Coverage</th>
14 </tr>
15 </thead>
16 <tbody>
Yuke Liaoea228d02018-01-05 19:10:3317 {% for entry in entries %}
Abhishek Arya865fffd2018-05-08 22:16:0118 <tr class="light-row">
19 <td>
20 {% if entry["is_dir"] == True %}
21 <pre><a href='{{ entry["href"] }}'>{{ entry["name"] }}/</a></pre>
22 {% else %}
23 <pre><a href='{{ entry["href"] }}'>{{ entry["name"] }}</a></pre>
24 {% endif %}
25 </td>
26 {% for feature in ("lines", "functions", "regions") %}
27 <td class='column-entry-{{ entry[feature]["color_class"] }}'>
28 <pre>{{ entry[feature]["percentage"] }}% ({{ entry[feature]["covered"] }}/{{ entry[feature]["total"] }})</pre>
29 </td>
30 {% endfor %}
31 </tr>
Yuke Liaoea228d02018-01-05 19:10:3332 {% endfor %}
Abhishek Arya865fffd2018-05-08 22:16:0133 </tbody>
Abhishek Aryaefbe1df2018-05-14 20:19:4834 {% if total_entry %}
35 <tfoot>
36 <tr class="light-row-bold">
37 <td>
38 <pre>Totals</pre>
39 </td>
40 {% for feature in ("lines", "functions", "regions") %}
41 <td class='column-entry-{{ total_entry[feature]["color_class"] }}'>
42 <pre>{{ total_entry[feature]["percentage"] }}% ({{ total_entry[feature]["covered"] }}/{{ total_entry[feature]["total"] }})</pre>
43 </td>
44 {% endfor %}
45 </tr>
46 </tfoot>
47 {% endif %}
Yuke Liaoea228d02018-01-05 19:10:3348</table>