pyfile.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
  2. {# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. {# IE8 rounds line-height incorrectly, and adding this emulateIE7 line makes it right! #}
  8. {# http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/7684445e-f080-4d8f-8529-132763348e21 #}
  9. <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
  10. <title>Coverage for {{fr.relative_filename|escape}}: {{nums.pc_covered_str}}%</title>
  11. <link rel="stylesheet" href="style.css" type="text/css">
  12. {% if extra_css %}
  13. <link rel="stylesheet" href="{{ extra_css }}" type="text/css">
  14. {% endif %}
  15. <script type="text/javascript" src="jquery.min.js"></script>
  16. <script type="text/javascript" src="jquery.hotkeys.js"></script>
  17. <script type="text/javascript" src="jquery.isonscreen.js"></script>
  18. <script type="text/javascript" src="coverage_html.js"></script>
  19. <script type="text/javascript">
  20. jQuery(document).ready(coverage.pyfile_ready);
  21. </script>
  22. </head>
  23. <body class="pyfile">
  24. <div id="header">
  25. <div class="content">
  26. <h1>Coverage for <b>{{fr.relative_filename|escape}}</b> :
  27. <span class="pc_cov">{{nums.pc_covered_str}}%</span>
  28. </h1>
  29. <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
  30. <h2 class="stats">
  31. {{nums.n_statements}} statements &nbsp;
  32. <span class="{{c_run}} shortkey_r button_toggle_run">{{nums.n_executed}} run</span>
  33. <span class="{{c_mis}} shortkey_m button_toggle_mis">{{nums.n_missing}} missing</span>
  34. <span class="{{c_exc}} shortkey_x button_toggle_exc">{{nums.n_excluded}} excluded</span>
  35. {% if has_arcs %}
  36. <span class="{{c_par}} shortkey_p button_toggle_par">{{nums.n_partial_branches}} partial</span>
  37. {% endif %}
  38. </h2>
  39. </div>
  40. </div>
  41. <div class="help_panel">
  42. <img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
  43. <p class="legend">Hot-keys on this page</p>
  44. <div>
  45. <p class="keyhelp">
  46. <span class="key">r</span>
  47. <span class="key">m</span>
  48. <span class="key">x</span>
  49. <span class="key">p</span> &nbsp; toggle line displays
  50. </p>
  51. <p class="keyhelp">
  52. <span class="key">j</span>
  53. <span class="key">k</span> &nbsp; next/prev highlighted chunk
  54. </p>
  55. <p class="keyhelp">
  56. <span class="key">0</span> &nbsp; (zero) top of page
  57. </p>
  58. <p class="keyhelp">
  59. <span class="key">1</span> &nbsp; (one) first highlighted chunk
  60. </p>
  61. </div>
  62. </div>
  63. <div id="source">
  64. <table>
  65. <tr>
  66. <td class="linenos">
  67. {% for line in lines -%}
  68. <p id="n{{line.number}}" class="{{line.class}}"><a href="#n{{line.number}}">{{line.number}}</a></p>
  69. {% endfor %}
  70. </td>
  71. <td class="text">
  72. {# These are the source lines, which are very sensitive to whitespace. -#}
  73. {# The `{ # - # }` below are comments which slurp up the following space. -#}
  74. {% for line in lines -%}
  75. <p id="t{{line.number}}" class="{{line.class}}">{#-#}
  76. {% if line.annotate -%}
  77. <span class="annotate short">{{line.annotate}}</span>{#-#}
  78. <span class="annotate long">{{line.annotate_long}}</span>{#-#}
  79. {% endif -%}
  80. {{line.html}}<span class="strut">&nbsp;</span>{#-#}
  81. </p>
  82. {% endfor %}
  83. </td>
  84. </tr>
  85. </table>
  86. </div>
  87. <div id="footer">
  88. <div class="content">
  89. <p>
  90. <a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="{{__url__}}">coverage.py v{{__version__}}</a>,
  91. created at {{ time_stamp }}
  92. </p>
  93. </div>
  94. </div>
  95. </body>
  96. </html>