{% macro coverage_table(rows, confidence) %} {% set total_evals = rows | sum(attribute="triggered") + rows | sum(attribute="evaluated_zero") + rows | sum(attribute="missing") %} {% set total_missing = rows | sum(attribute="missing") %} {% set pct_missing = (100 * total_missing / total_evals) if total_evals else 0 %}
Coverage

Which rules could be evaluated

Rule coverage by domain — {{ rows | length }} domain{{ "s" if rows | length != 1 else "" }} evaluated, {{ pct_missing | pct2 }} of rule evaluations had missing inputs
{% for row in rows %} {% endfor %}
Domain Triggered Below threshold Inputs missing Distribution
{{ row.domain_label }} {{ row.triggered }} {{ row.evaluated_zero }} {{ row.missing }} {{ coverage_bar(row.triggered, row.evaluated_zero, row.missing) }}

Confidence: {% for level, count in confidence.counts.items() %}{{ level | humanize_confidence }} · {{ count }}{% if not loop.last %}, {% endif %}{% endfor %}. Reasons: {% for reason in confidence.reasons %}{{ reason | humanize_reason }}{% if not loop.last %}, {% endif %}{% endfor %}.

{% endmacro %}