Ancora.Derive.Ack (ancora v1.0.0)

Copy Markdown View Source

Detects substantive subject-spec acknowledgment from parsed YAML blocks.

Only requirement and scenario lists participate. Internal whitespace in string values is collapsed before comparison.

Summary

Functions

Alias for substantive?/2 named for the gate's use.

Parses and normalizes the acknowledgment-bearing parts of a spec.

True when requirements or scenarios differ after string normalization.

Functions

acknowledged?(base_source, head_source)

@spec acknowledged?(binary() | nil, binary() | nil) :: boolean()

Alias for substantive?/2 named for the gate's use.

parse(source)

@spec parse(binary() | nil) ::
  {:ok, %{requirements: list(), scenarios: list()}} | {:error, term()}

Parses and normalizes the acknowledgment-bearing parts of a spec.

substantive?(base_source, head_source)

@spec substantive?(binary() | nil, binary() | nil) :: boolean()

True when requirements or scenarios differ after string normalization.