Yuke Liao | ea228d0 | 2018-01-05 19:10:33 | [diff] [blame] | 1 | <table> |
Abhishek Arya | 865fffd | 2018-05-08 22:16:01 | [diff] [blame] | 2 | <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 && z')."> |
| 13 | Region Coverage</th> |
| 14 | </tr> |
| 15 | </thead> |
| 16 | <tbody> |
Yuke Liao | ea228d0 | 2018-01-05 19:10:33 | [diff] [blame] | 17 | {% for entry in entries %} |
Abhishek Arya | 865fffd | 2018-05-08 22:16:01 | [diff] [blame] | 18 | <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 Liao | ea228d0 | 2018-01-05 19:10:33 | [diff] [blame] | 32 | {% endfor %} |
Abhishek Arya | 865fffd | 2018-05-08 22:16:01 | [diff] [blame] | 33 | </tbody> |
Abhishek Arya | efbe1df | 2018-05-14 20:19:48 | [diff] [blame^] | 34 | {% 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 Liao | ea228d0 | 2018-01-05 19:10:33 | [diff] [blame] | 48 | </table> |