{% macro coverage_bar(percentage, status, label="") -%} {%- endmacro %} {% macro coverage_row(row, show_type=false) -%} {% if row.href %} {{ row.name }} {% if row.kind == "Directory" %} {% endif %} {% else %} {{ row.name }} {% endif %} {% if show_type %} {{ row.kind }} {% endif %} {{ "{:,}".format(row.statements) }} {{ "{:,}".format(row.missing) }}
{{ coverage_bar( row.percentage, row.status, "%.1f%% coverage"|format(row.percentage) ) }} {{ "%.0f"|format(row.percentage) }}%
{%- endmacro %}