View Source Machete.TermMatcher (Machete v0.3.1)

Defines a matcher that matches everything

Summary

Types

Describes the arguments that can be passed to this matcher

t()

Describes an instance of this matcher

Functions

Matches everything

Types

@type opts() :: []

Describes the arguments that can be passed to this matcher

@opaque t()

Describes an instance of this matcher

Functions

@spec term(opts()) :: t()

Matches everything

Takes no arguments

Examples:

iex> assert "a" ~> term()
true

iex> assert :a ~> term()
true

iex> assert 1 ~> term()
true

iex> assert %{} ~> term()
true

iex> assert nil ~> term()
true