Juggernaut.Report.CodeMap (Juggernaut v0.4.0)

Copy Markdown View Source

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.

Summary

Functions

The files of run with their functions.

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

Functions

build(run, options)

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

The files of run with their functions.

outcome(run, mutant, options)

@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).