What the analysis tasks read before they call a view (design notes §3, §11): a recorded run from the store, and the view options a run does not hold (the configured thresholds and timeout scoring, the source of the mutated files for excerpts, and the test files that exist for the suggested test file).
Sources are read from the working tree as it is now, so an excerpt shows today's text of a file that changed after the run.
Summary
Functions
Loads the run ref names from the project's store.
Prints a view's document on stdout, without doubling its final newline.
The text of each file run mutated that can still be read under root.
The *_test.exs files under the test paths (:project means test), relative to root.
The timeouts setting run was scored with (Summary.timeouts), else config's (a
run recorded before the setting was kept), so a view matches the run's own gate.
View options for run: extra (page, per page, ...) plus the configuration's
thresholds and timeout scoring, the sources of the run's files and the existing test
files. An invalid .juggernaut.exs is a configuration error (exit 2).
Functions
@spec load_run(Juggernaut.CLI.Task.ctx(), Juggernaut.Store.Runs.ref()) :: {:ok, Juggernaut.Run.t()} | {:error, Juggernaut.Error.t()}
Loads the run ref names from the project's store.
@spec print(iodata()) :: :ok
Prints a view's document on stdout, without doubling its final newline.
@spec sources(Path.t(), Juggernaut.Run.t()) :: %{required(String.t()) => String.t()}
The text of each file run mutated that can still be read under root.
The *_test.exs files under the test paths (:project means test), relative to root.
@spec timeouts(Juggernaut.Run.t(), Juggernaut.Config.t()) :: :killed | :survived
The timeouts setting run was scored with (Summary.timeouts), else config's (a
run recorded before the setting was kept), so a view matches the run's own gate.
@spec view_options(Juggernaut.CLI.Task.ctx(), Juggernaut.Run.t(), keyword()) :: {:ok, Juggernaut.View.options()} | {:error, Juggernaut.Error.t()}
View options for run: extra (page, per page, ...) plus the configuration's
thresholds and timeout scoring, the sources of the run's files and the existing test
files. An invalid .juggernaut.exs is a configuration error (exit 2).