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

The mutant inventory of `mix juggernaut --dry-run` (design notes §3): counts by file and
by operator, ignored mutants, compile-time sites that are not mutated, and the ignore
and routing warnings.

`human` is a table; `agent` and `json` are one JSON document, keys in a stable order:

    {"format":1,"kind":"plan","lane":"gate","scope":{"kind":"full","ref":null},
     "counts":{"files":2,"mutants":40,"ignored":3,"compile_time":1},
     "by_file":[{"file":"lib/a.ex","mutants":30,"ignored":3,"compile_time":1,
                 "by_operator":{"integer":12,...}}],
     "by_operator":{"integer":20,...},"warnings":[...]}

Operators are listed in registry order. Ignored mutants are counted under their
operator and in `ignored`; `mutants` counts every mutant, ignored included.

# `input`

```elixir
@type input() :: %{
  lane: atom(),
  scope: Juggernaut.Run.scope(),
  inventory: Juggernaut.Plan.inventory()
}
```

# `document`

```elixir
@spec document(input()) :: Jason.OrderedObject.t()
```

The inventory as a JSON-ready ordered document.

# `human`

```elixir
@spec human(input()) :: String.t()
```

The inventory as human-readable text.

# `print`

```elixir
@spec print(input(), atom()) :: :ok
```

Prints the inventory on stdout in `format`: `agent` and `json` print the JSON
document, `markdown` the human text in a fenced block, `human` and `github` the text.

---

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