# `Juggernaut.View.Compare`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/juggernaut/view/compare.ex#L1)

A comparison (`Juggernaut.Compare`) for people, agents and pull requests
(`mix juggernaut.compare`, design notes §3): how the sides were paired, the blocking
class first (killed in A, not killed in B, on core), every other status change, the
counts, both score formulas, and the time each side took: measured wall and phase
clocks, and the recorded per-mutant durations of the mutants both sides ran.

Every status change and every unpaired mutant is listed. Only the per-mutant duration
changes are limited, to the largest ten, and the output says so.

Statuses are shown as recorded; a timeout kill that the configuration scores as
survived is shown so (`timeouts: :survived`), and the output says how timeouts were
scored.

The JSON document is `{"format": 1, "kind": "compare", "timeouts", "a", "b", "pairing",
"paired", "near", "blocking", "changes", "lane_changes", "only_a", "only_b", "doubtful",
"phases", "durations"}`; `near` counts the pairs made at a nearby place
(`Juggernaut.Compare`). Each side has `integration_only` (its kills only an integration
test made) after `timeouts`, each entry `test_lane` after `kill_kind`, and
`lane_changes` lists the pairs killed on both sides by a different test lane (`to`:
B's lane), which the human and Markdown output show only when there are some.

# `render`

```elixir
@spec render(:human | :json | :markdown, Juggernaut.Compare.t()) :: iodata()
```

The comparison in `format` (`:human`, `:json` or `:markdown`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
