Machete.ReferenceMatcher (Machete v0.3.11)

View Source

Defines a matcher that matches reference values

Summary

Types

Describes the arguments that can be passed to this matcher

t()

Describes an instance of this matcher

Functions

Matches against reference 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

reference(opts \\ [])

@spec reference(opts()) :: t()

Matches against reference values

Takes no arguments

Examples:

iex> assert make_ref() ~> reference()
true

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