Certitudo.Discordia (certitudo v0.1.0)

Copy Markdown View Source

Infers the discordia — the diff — between the impressio and the retentio that Retentio.resolve/1 located — or carries forward why there's nothing to diff.

Summary

Functions

Reads the snapshots at retentio_path and impressio_path and returns the differentia between them.

Stage: turns ctx.retentio into :diff. Writes diff.prev.json into ctx.impressio_run_dir when a retentio was found.

Types

diff_result()

@type diff_result() ::
  {:ok, %{retentio_path: binary(), diff: map(), diff_path: binary()}}
  | {:since_not_found, binary()}
  | :skipped

Functions

comparare(retentio_path, impressio_path)

@spec comparare(binary(), binary()) :: map()

Reads the snapshots at retentio_path and impressio_path and returns the differentia between them.

inferentia(ctx)

@spec inferentia(map()) :: map()

Stage: turns ctx.retentio into :diff. Writes diff.prev.json into ctx.impressio_run_dir when a retentio was found.