unittest/templates/coverage/statistic.tex

14 lines
632 B
TeX
Raw Normal View History

2020-01-26 16:19:29 +01:00
{%- import 'macros.tex' as macros %}
\begin{tabu} to \linewidth {lll}
\toprule
\textbf{Module- or Filename} & \textbf{Line-Coverage} & \textbf{Branch-Coverage}\\
{%- for module in coverage_information %}
\midrule
{\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 %} \\
{%- for py_file in module.files %}
\hspace*{2ex}{\tt {{macros.latex_filter(py_file.name)}} } & {{macros.latex_filter("%.1f" % py_file.line_coverage)}}\% & \\
{%- endfor %}
{%- endfor %}
\bottomrule
\end{tabu}