# `Juggernaut.Report.CodeMap`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/juggernaut/report/code_map.ex#L1)

The code map's data (design notes §11): the run's files, each with its functions, and
for each the mutants counted by how they ended. `density` is the share of scored
mutants listed as survivors (survived, not covered, or a timeout scored as survived),
`nil` when nothing there was scored; the page colours by it. A file's `score` is the
one its run recorded (`nil` when the summary has none).

Files are ordered core first, then by density (highest first) and path; functions by
their first mutated line.

# `build`

```elixir
@spec build(Juggernaut.Run.t(), Juggernaut.View.options()) :: [map()]
```

The files of `run` with their functions.

# `outcome`

```elixir
@spec outcome(Juggernaut.Run.t(), Juggernaut.Mutant.t(), Juggernaut.View.options()) ::
  :survivor | :killed | :unscored
```

How a mutant counts on the map: `:survivor`, `:killed`, or `:unscored` (ignored,
equivalent, pending, compile or harness errors).

---

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