Bourse.LiveDrift.Comparator (bourse v0.1.0)

Copy Markdown View Source

Compares live wire shapes with consumed paths from a committed recording.

Values and unconsumed provider keys do not participate in failure decisions.

Summary

Functions

Compares the consumed envelope and field types for one public method.

Returns the targeted recapture command and authored-spec path for a stale method.

Types

comparison()

@type comparison() :: %{failures: [map()], observations: [map()]}

Functions

compare(venue, method, parse_type, js_method, baseline_fixture, live_fixture)

@spec compare(String.t(), atom(), String.t(), String.t(), map(), map()) ::
  comparison()

Compares the consumed envelope and field types for one public method.

repair_paths(venue, method)

@spec repair_paths(String.t(), atom()) :: %{
  recapture: String.t(),
  reauthor: String.t()
}

Returns the targeted recapture command and authored-spec path for a stale method.