src/eric7/DebugClients/Python/coverage/htmlfiles/pyfile.html

branch
eric7-maintenance
changeset 9264
18a7312cfdb3
parent 9209
b99e7fd55fd3
equal deleted inserted replaced
9241:d23e9854aea4 9264:18a7312cfdb3
1 {# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
2 {# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt #}
3
4 <!DOCTYPE html>
5 <html>
6 <head>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8 <title>Coverage for {{relative_filename|escape}}: {{nums.pc_covered_str}}%</title>
9 <link rel="icon" sizes="32x32" href="favicon_32.png">
10 <link rel="stylesheet" href="style.css" type="text/css">
11 {% if extra_css %}
12 <link rel="stylesheet" href="{{ extra_css }}" type="text/css">
13 {% endif %}
14 <script type="text/javascript" src="coverage_html.js" defer></script>
15 </head>
16 <body class="pyfile">
17
18 <header>
19 <div class="content">
20 <h1>
21 <span class="text">Coverage for </span><b>{{relative_filename|escape}}</b>:
22 <span class="pc_cov">{{nums.pc_covered_str}}%</span>
23 </h1>
24
25 <aside id="help_panel_wrapper">
26 <input id="help_panel_state" type="checkbox">
27 <label for="help_panel_state">
28 <img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
29 </label>
30 <div id="help_panel">
31 <p class="legend">Shortcuts on this page</p>
32 <div class="keyhelp">
33 <p>
34 <kbd>r</kbd>
35 <kbd>m</kbd>
36 <kbd>x</kbd>
37 {% if has_arcs %}
38 <kbd>p</kbd>
39 {% endif %}
40 &nbsp; toggle line displays
41 </p>
42 <p>
43 <kbd>j</kbd>
44 <kbd>k</kbd>
45 &nbsp; next/prev highlighted chunk
46 </p>
47 <p>
48 <kbd>0</kbd> &nbsp; (zero) top of page
49 </p>
50 <p>
51 <kbd>1</kbd> &nbsp; (one) first highlighted chunk
52 </p>
53 <p>
54 <kbd>[</kbd>
55 <kbd>]</kbd>
56 &nbsp; prev/next file
57 </p>
58 <p>
59 <kbd>u</kbd> &nbsp; up to the index
60 </p>
61 <p>
62 <kbd>?</kbd> &nbsp; show/hide this help
63 </p>
64 </div>
65 </div>
66 </aside>
67
68 <h2>
69 <span class="text">{{nums.n_statements}} statements &nbsp;</span>
70 <button type="button" class="{{category.run}} button_toggle_run" value="run" data-shortcut="r" title="Toggle lines run">{{nums.n_executed}}<span class="text"> run</span></button>
71 <button type="button" class="{{category.mis}} button_toggle_mis" value="mis" data-shortcut="m" title="Toggle lines missing">{{nums.n_missing}}<span class="text"> missing</span></button>
72 <button type="button" class="{{category.exc}} button_toggle_exc" value="exc" data-shortcut="x" title="Toggle lines excluded">{{nums.n_excluded}}<span class="text"> excluded</span></button>
73 {% if has_arcs %}
74 <button type="button" class="{{category.par}} button_toggle_par" value="par" data-shortcut="p" title="Toggle lines partially run">{{nums.n_partial_branches}}<span class="text"> partial</span></button>
75 {% endif %}
76 </h2>
77
78 <p class="text">
79 <a id="prevFileLink" class="nav" href="{{ prev_html }}">&#xab; prev</a> &nbsp; &nbsp;
80 <a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
81 <a id="nextFileLink" class="nav" href="{{ next_html }}">&#xbb; next</a>
82 &nbsp; &nbsp; &nbsp;
83 <a class="nav" href="{{__url__}}">coverage.py v{{__version__}}</a>,
84 created at {{ time_stamp }}
85 </p>
86
87 <aside class="hidden">
88 <button type="button" class="button_next_chunk" data-shortcut="j"/>
89 <button type="button" class="button_prev_chunk" data-shortcut="k"/>
90 <button type="button" class="button_top_of_page" data-shortcut="0"/>
91 <button type="button" class="button_first_chunk" data-shortcut="1"/>
92 <button type="button" class="button_prev_file" data-shortcut="["/>
93 <button type="button" class="button_next_file" data-shortcut="]"/>
94 <button type="button" class="button_to_index" data-shortcut="u"/>
95 <button type="button" class="button_show_hide_help" data-shortcut="?"/>
96 </aside>
97 </div>
98 </header>
99
100 <main id="source">
101 {% for line in lines -%}
102 {% joined %}
103 <p class="{{line.css_class}}">
104 <span class="n"><a id="t{{line.number}}" href="#t{{line.number}}">{{line.number}}</a></span>
105 <span class="t">{{line.html}}&nbsp;</span>
106 {% if line.context_list %}
107 <input type="checkbox" id="ctxs{{line.number}}" />
108 {% endif %}
109 {# Things that should float right in the line. #}
110 <span class="r">
111 {% if line.annotate %}
112 <span class="annotate short">{{line.annotate}}</span>
113 <span class="annotate long">{{line.annotate_long}}</span>
114 {% endif %}
115 {% if line.contexts %}
116 <label for="ctxs{{line.number}}" class="ctx">{{ line.contexts_label }}</label>
117 {% endif %}
118 </span>
119 {# Things that should appear below the line. #}
120 {% if line.context_list %}
121 <span class="ctxs">
122 {% for context in line.context_list %}
123 <span>{{context}}</span>
124 {% endfor %}
125 </span>
126 {% endif %}
127 </p>
128 {% endjoined %}
129 {% endfor %}
130 </main>
131
132 <footer>
133 <div class="content">
134 <p>
135 <a id="prevFileLink" class="nav" href="{{ prev_html }}">&#xab; prev</a> &nbsp; &nbsp;
136 <a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
137 <a id="nextFileLink" class="nav" href="{{ next_html }}">&#xbb; next</a>
138 &nbsp; &nbsp; &nbsp;
139 <a class="nav" href="{{__url__}}">coverage.py v{{__version__}}</a>,
140 created at {{ time_stamp }}
141 </p>
142 </div>
143 </footer>
144
145 </body>
146 </html>

eric ide

mercurial