Python Library Unittest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

statistic.tex 632B

12345678910111213
  1. {%- import 'macros.tex' as macros %}
  2. \begin{tabu} to \linewidth {lll}
  3. \toprule
  4. \textbf{Module- or Filename} & \textbf{Line-Coverage} & \textbf{Branch-Coverage}\\
  5. {%- for module in coverage_information %}
  6. \midrule
  7. {\tt {{macros.latex_filter(module.name)}} } & {{macros.latex_filter("%.1f" % module.line_coverage)}}\% & {% if module.branch_coverage %}{{macros.latex_filter("%.1f" % module.branch_coverage)}}\%{% endif %} \\
  8. {%- for py_file in module.files %}
  9. \hspace*{2ex}{\tt {{macros.latex_filter(py_file.name)}} } & {{macros.latex_filter("%.1f" % py_file.line_coverage)}}\% & \\
  10. {%- endfor %}
  11. {%- endfor %}
  12. \bottomrule
  13. \end{tabu}