summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/htmlfiles/index.html')
-rw-r--r--coverage/htmlfiles/index.html141
1 files changed, 81 insertions, 60 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html
index 92b89444..162f862c 100644
--- a/coverage/htmlfiles/index.html
+++ b/coverage/htmlfiles/index.html
@@ -1,67 +1,88 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
-<head>
-<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
-<title>Coverage report</title>
-<link rel='stylesheet' href='style.css' type='text/css'>
-</head>
-<body>
+ <head>
+ <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
+ <title>Coverage report</title>
+ <link rel='stylesheet' href='style.css' type='text/css'>
+ <script type='text/javascript' src='jquery-1.3.2.min.js'></script>
+ <script type='text/javascript' src='jquery.tablesorter.min.js'></script>
+ </head>
+ <body>
-<div id='header'>
- <div class='content'>
- <h1>Coverage report:
- <span class='pc_cov'>{{totals.pc_covered|format_pct}}%</span>
- </h1>
- </div>
-</div>
+ <div id='header'>
+ <div class='content'>
+ <h1>Coverage report:
+ <span class='pc_cov'>{{totals.pc_covered|format_pct}}%</span>
+ </h1>
+ </div>
+ </div>
-<div id='index'>
-<table class='index'>
-<tr class='tablehead'>
- <th class='name'>Module</th>
- <th>statements</th>
- <th>run</th>
- <th>excluded</th>
- {% if arcs %}
- <th>branches</th>
- <th>br exec</th>
- {% endif %}
- <th>coverage</th>
-</tr>
-{% for file in files %}
-<tr class='file'>
- <td class='name'><a href='{{file.html_filename}}'>{{file.cu.name}}</a></td>
- <td>{{file.nums.n_statements}}</td>
- <td>{{file.nums.n_executed}}</td>
- <td>{{file.nums.n_excluded}}</td>
- {% if arcs %}
- <td>{{file.nums.n_branches}}</td>
- <td>{{file.nums.n_executed_branches}}</td>
- {% endif %}
- <td>{{file.nums.pc_covered|format_pct}}%</td>
-</tr>
-{% endfor %}
-<tr class='total'>
-<td class='name'>Total</td>
-<td>{{totals.n_statements}}</td>
-<td>{{totals.n_executed}}</td>
-<td>{{totals.n_excluded}}</td>
-{% if arcs %}
-<td>{{totals.n_branches}}</td>
-<td>{{totals.n_executed_branches}}</td>
-{% endif %}
-<td>{{totals.pc_covered|format_pct}}%</td>
-</tr>
-</table>
-</div>
+ <div id='index'>
+ <table class='index'>
+ <thead>
+ <tr class='tablehead'>
+ <th class='name'>Module</th>
+ <th>statements</th>
+ <th>run</th>
+ <th>excluded</th>
+ {% if arcs %}
+ <th>branches</th>
+ <th>br exec</th>
+ {% endif %}
+ <th>coverage</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for file in files %}
+ <tr class='file'>
+ <td class='name'><a href='{{file.html_filename}}'>{{file.cu.name}}</a></td>
+ <td>{{file.nums.n_statements}}</td>
+ <td>{{file.nums.n_executed}}</td>
+ <td>{{file.nums.n_excluded}}</td>
+ {% if arcs %}
+ <td>{{file.nums.n_branches}}</td>
+ <td>{{file.nums.n_executed_branches}}</td>
+ {% endif %}
+ <td>{{file.nums.pc_covered|format_pct}}%</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ <tfoot>
+ <tr class='total'>
+ <td class='name'>Total</td>
+ <td>{{totals.n_statements}}</td>
+ <td>{{totals.n_executed}}</td>
+ <td>{{totals.n_excluded}}</td>
+ {% if arcs %}
+ <td>{{totals.n_branches}}</td>
+ <td>{{totals.n_executed_branches}}</td>
+ {% endif %}
+ <td>{{totals.pc_covered|format_pct}}%</td>
+ </tr>
+ </tfoot>
+ </table>
+ </div>
-<div id='footer'>
- <div class='content'>
- <p>
- <a class='nav' href='{{__url__}}'>coverage.py v{{__version__}}</a>
- </p>
- </div>
-</div>
+ <div id='footer'>
+ <div class='content'>
+ <p>
+ <a class='nav' href='{{__url__}}'>coverage.py v{{__version__}}</a>
+ </p>
+ </div>
+ </div>
-</body>
+ <script type="text/javascript" charset="utf-8">
+ jQuery(function() {
+ jQuery("table.index").tablesorter({
+ headers: {
+ 0: { sorter:'test' },
+ 1: { sorter:'digit' },
+ 2: { sorter:'digit' },
+ 3: { sorter:'digit' },
+ 4: { sorter:'digit' },
+ }
+ });
+ });
+ </script>
+ </body>
</html>