View Source Machete.AllMatcher (Machete v0.2.3)

Defines a matcher that matches against a set of matchers, requiring all of them to match

Link to this section Summary

Types

t()

Describes an instance of this matcher

Functions

Matches against a set of matchers, requiring all of them to match

Link to this section Types

@opaque t()

Describes an instance of this matcher

Link to this section Functions

@spec all([Machete.Matchable.t()]) :: t()

Matches against a set of matchers, requiring all of them to match

Takes a list of matchers as its sole (mandatory) argument

Examples:

iex> assert "abc" ~> all([term(), string()])
true

iex> refute :abc ~> all([term(), string()])
false