{# One evidence record, whole, with its two hashes taken again from the file it is in. The record holds every row of its result, so the rows are inside a disclosure and the count is on the summary line: a reader who wants them opens them, and a reader who wants the hash reads it without waiting for a thousand rows. #} {% macro record_block(record, rows_table) %}

{{ record.side }}: {{ record.file }}

{{ record.executed_sql }}
statement read from
{{ record.source.path }}
digest
{{ record.source.digest }}
origin
{% if record.source.origin %}{{ record.source.origin }}{% if record.source.date %}, {{ record.source.date }}{% endif %}{% else %}the run was told none{% endif %}
{% for hash in record.hashes %}

{{ hash.name }} {{ hash.stated }} {% if hash.match %} recomputed from this JSON: match {% else %} recomputed from this JSON: {{ hash.recomputed }}, and this file states {{ hash.stated }} {% endif %}

{% endfor %}
the result this record holds, {{ record.result.total }} {{ rows_table(record.result) }}
what ran, and where
{% for fact in record.identity %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
the session it ran under
{% for fact in record.session %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}

recorded beside them

{% for fact in record.recorded %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
the rendering and the data
{% for fact in record.serialization %}
{{ fact.name }}
{{ fact.value }}
{% endfor %} {% for fact in record.fixture %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
{% endmacro %}