Matcha.Source (Matcha v0.1.3) View Source

About sources.

Link to this section Summary

Link to this section Types

Specs

all_matches() :: :"$$"

Specs

body() :: [expression()] | any()

Specs

clause() :: {pattern(), conditions(), body()}

Specs

compiled() :: :ets.comp_match_spec()

Specs

condition() :: expression()

Specs

conditions() :: [condition()]

Specs

context() :: module()

Specs

erl_test_type() :: :table | :trace

Specs

expression() :: tuple() | match_all() | all_matches() | any()

Specs

match_all() :: :"$_"

Specs

pattern() :: tuple()

Specs

spec() :: [clause()]

Specs

test_result() ::
  {:matched, any()}
  | :no_match
  | {:returned, any()}
  | {:traced, boolean() | String.t(), trace_flags()}
  | any()

Specs

test_target() :: tuple() | [tuple()] | term()

Specs

trace_flags() :: list()

Link to this section Functions

Specs

compile(spec(), context()) ::
  {:ok, compiled()} | {:error, Matcha.Error.problems()}

Specs

run(compiled(), list()) :: list()

Specs

test(Matcha.Spec.t(), test_target()) ::
  {:ok, test_target()} | {:error, Matcha.Error.problems()}