{% macro summary_line(kind, covered, total, precision) %} {%- set per = percent(num=covered, den=total) -%}

{{ kind | capitalize }}

{{ per | round(precision=precision) }} %

{% endmacro -%} {% macro summary(parents, stats, precision) %} {% endmacro %} {% macro stats_line(name, url, stats, precision) %} {%- set lines_per = percent(num=stats.covered_lines, den=stats.total_lines) -%} {%- set lines_sev = lines_per | severity(kind="lines") -%} {%- set functions_per = percent(num=stats.covered_funs, den=stats.total_funs) -%} {%- set functions_sev = functions_per | severity(kind="functions") -%} {% if branch_enabled %} {%- set branches_per = percent(num=stats.covered_branches, den=stats.total_branches) -%} {%- set branches_sev = branches_per | severity(kind="branches") -%} {% endif %} {{ name }} {{ lines_per | round(precision=precision) }}% {{ lines_per | round(precision=precision) }}% {{ stats.covered_lines }} / {{ stats.total_lines }} {{ functions_per | round(precision=precision) }}% {{ stats.covered_funs }} / {{ stats.total_funs }} {% if branch_enabled %} {{ branches_per | round(precision=precision) }}% {{ stats.covered_branches }} / {{ stats.total_branches }} {% endif %} {% endmacro %}