Certitudo.Coverage (certitudo v0.1.0)

Copy Markdown View Source

Versioned coverage snapshots and block-first structural diffs.

Summary

Functions

certitudo_dir()

@spec certitudo_dir() :: binary()

create_snapshot_from_coverdata(coverdata_path, opts \\ [])

@spec create_snapshot_from_coverdata(
  binary(),
  keyword()
) :: map()

diff(left, right)

@spec diff(map(), map()) :: map()

find_snapshot_path(arg)

@spec find_snapshot_path(binary()) :: binary() | nil

fingerprint(snapshot)

@spec fingerprint(map()) :: binary()

read_snapshot(path)

@spec read_snapshot(binary()) :: map()

resolve_prefixes(opts)

@spec resolve_prefixes(keyword()) :: [binary()]

resolve_snapshot_path(arg)

@spec resolve_snapshot_path(binary()) :: binary()

snapshot(ctx)

@spec snapshot(map()) :: map()

Stage: builds the impressio snapshot from ctx.coverdata_path and ctx.opts, adding :run_id, :run_label, :snapshot and :run_dir.

timestamp_id()

@spec timestamp_id() :: binary()

unique_run_dir(run_id)

@spec unique_run_dir(binary()) :: binary()

write_snapshot(snapshot, run_dir)

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