Machete.AtomMatcher (Machete v0.3.11)

View Source

Defines a matcher that matches atom values

Summary

Types

Describes the arguments that can be passed to this matcher

t()

Describes an instance of this matcher

Functions

Matches against atom values

Types

opts()

@type opts() :: []

Describes the arguments that can be passed to this matcher

t()

@opaque t()

Describes an instance of this matcher

Functions

atom(opts \\ [])

@spec atom(opts()) :: t()

Matches against atom values

Takes no arguments

Examples:

iex> assert :a ~> atom()
true

iex> refute "a" ~> atom()
false