Matcha.Spec (Matcha v0.1.0) View Source

About specs.

Link to this section Summary

Link to this section Types

Specs

t() :: %Matcha.Spec{
  compiled: Matcha.Source.compiled() | nil,
  context: Matcha.Context.t(),
  node: Node.t() | nil,
  source: Matcha.Source.spec(),
  type: Matcha.Source.type()
}

Link to this section Functions

Specs

compile(t()) :: {:error, Matcha.Error.problems()} | {:ok, t()}

Specs

compile!(t()) :: t() | no_return()

Specs

compiled?(t()) :: boolean()
Link to this function

filter_map(spec, enumerable)

View Source

Specs

filter_map(t(), Enumerable.t()) :: Enumerable.t()

Specs

recompile(t()) :: {:error, Matcha.Error.problems()} | {:ok, t()}

Specs

recompile!(t()) :: t() | no_return()

Specs

should_recompile?(t()) :: boolean()
Link to this function

stream(spec, enumerable)

View Source

Specs

stream(t(), Enumerable.t()) :: Enumerable.t()

Specs

test(t()) ::
  {:error, Matcha.Error.problems()} | {:ok, Matcha.Source.test_result()}

Specs

Specs

Specs