In-memory shape the pipeline assembles before the JSON reporter serialises it.
The struct mirrors the version 2 schema documented in
mutagen.json_schema. Every
field is nil-able except version (which is implicit in the reporter)
and warnings / aborted (which default to empty/false). Per r5,
sub-blocks the pipeline never populated stay nil rather than absent —
the reporter emits them as JSON null so the schema's shape is the same
on success and abort.
Field-by-field
:meta— versions, ExUnit seed, and the optional:fail_fastsetting. The reporter addsid_schemeon the wire. Always populated by the orchestrator before any phase runs (r5).:scope— list of resolved%MutagenEx.ScopeResolver.Scope{}records or anything with:file,:line_range,:module. Empty list pre-resolution.:tests—%MutagenEx.TestSelector.TestFilter{}-shaped map (:include,:exclude,:files) ornil.:baseline—%{passed, failed, failures}ornil.:coverage—%{covered_lines: %{file => lines}}ornil.:mutation— full mutation block (seemutagen.json_schema.r3for sub-fields) ornil.:warnings— list of strings. May be empty but nevernil.:aborted— boolean.falsefor full success,truefor any pre-completion exit.:abort_reason— string ornil. Populated iffaborted == true.:details— map ornil. Phase-supplied diagnostic context for aborts; emitted as an empty map on success/non-abort documents.:truncated— boolean.truewhen the run completed only a prefix of the enumerated mutation sites because the aggregate--budget-mswall-clock was exhausted (permutagen.cli.r13). The mutation block reflects the partial results;abortedmay still befalsesince a truncated run is a graceful early exit, not an abort.
Summary
Types
@type t() :: %MutagenEx.JsonReporter.Report{ abort_reason: String.t() | nil, aborted: boolean(), baseline: map() | nil, coverage: map() | nil, details: map() | nil, include_host_output: boolean(), meta: map() | nil, mutation: map() | nil, rerun_options: map(), scope: list() | nil, source: boolean(), stream_end: boolean(), summary: map() | nil, summary_max: non_neg_integer(), tests: map() | nil, truncated: boolean(), warnings: [ String.t() | {atom(), String.t()} | {:host_names, atom(), [term()]} ] }