Juggernaut.View.DryRun (Juggernaut v0.4.0)

Copy Markdown View Source

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.

Summary

Functions

The inventory as a JSON-ready ordered document.

The inventory as human-readable text.

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.

Types

input()

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

Functions

document(map)

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

The inventory as a JSON-ready ordered document.

human(map)

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

The inventory as human-readable text.

print(input, format)

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