Module hamcrest_matchers

Hamcrest Matchers.

Copyright © 2010 Tim Watson.

Authors: Tim Watson (watson.timothy@gmail.com).

References

Description

Hamcrest Matchers

Data Types

container_t()

container_t() = list() | hc_set() | hc_gb_set()

matchfun()

matchfun(A) = fun((A) -> boolean())

Function Index

all_of/1
any_of/1
anything/0
check_isempty/1
check_member/2
contains_member/1
contains_string/1
ends_with/1
equal_to/1
exactly_equal_to/1
foreach/1
greater_than/1
greater_than_or_equal_to/1
has_length/1
has_same_contents_as/1
is/1
is_false/0
is_not/1
is_true/0
isalive/0
isdead/0
isempty/0
less_than/1
less_than_or_equal_to/1
match_mfa/3
match_mfa/4
matches_regex/1
reverse_match_mfa/3
reverse_match_mfa/4
starts_with/1
will_fail/0
will_fail/2

Function Details

all_of/1

all_of(Matchers::[matchfun(term())]) -> hamcrest:matchspec()

all_of(Matchers::[hamcrest:matchspec()]) -> hamcrest:matchspec()

any_of/1

any_of(Matchers::[matchfun(term())]) -> hamcrest:matchspec()

any_of(Matchers::[hamcrest:matchspec()]) -> hamcrest:matchspec()

anything/0

anything() -> hamcrest:matchspec()

check_isempty/1

check_isempty(X) -> any()

check_member/2

check_member(Container, E) -> any()

contains_member/1

contains_member(E::term()) -> hamcrest:matchspec()

contains_string/1

contains_string(X::string()) -> hamcrest:matchspec()

ends_with/1

ends_with(X::string()) -> hamcrest:matchspec()

equal_to/1

equal_to(Y::term()) -> hamcrest:matchspec()

exactly_equal_to/1

exactly_equal_to(X::term()) -> hamcrest:matchspec()

foreach/1

foreach(M::hamcrest:matchspec()) -> hamcrest:matchspec()

greater_than/1

greater_than(X::number()) -> hamcrest:matchspec()

greater_than_or_equal_to/1

greater_than_or_equal_to(X::number()) -> hamcrest:matchspec()

has_length/1

has_length(Size::number()) -> hamcrest:matchspec()

has_same_contents_as/1

has_same_contents_as(Container::container_t()) -> hamcrest:matchspec()

is/1

is(Matcher::matchfun(term())) -> hamcrest:matchspec()

is(Matcher::hamcrest:matchspec()) -> hamcrest:matchspec()

is(Matcher::any()) -> hamcrest:matchspec()

is_false/0

is_false() -> hamcrest:matchspec()

is_not/1

is_not(MatchSpec::matchfun(term())) -> hamcrest:matchspec()

is_not(MatchSpec::hamcrest:matchspec()) -> hamcrest:matchspec()

is_not(MatchSpec::term()) -> hamcrest:matchspec()

is_true/0

is_true() -> hamcrest:matchspec()

isalive/0

isalive() -> hamcrest:matchspec()

isdead/0

isdead() -> hamcrest:matchspec()

isempty/0

isempty() -> hamcrest:matchspec()

less_than/1

less_than(X::number()) -> hamcrest:matchspec()

less_than_or_equal_to/1

less_than_or_equal_to(X::number()) -> hamcrest:matchspec()

match_mfa/3

match_mfa(Mod::module(), Func::atom(), Args::[term()]) -> hamcrest:matchspec()

match_mfa/4

match_mfa(Mod::module(), Func::atom(), Args::[term()], Desc::term()) -> hamcrest:matchspec()

matches_regex/1

matches_regex(Rx::string()) -> hamcrest:matchspec()

reverse_match_mfa/3

reverse_match_mfa(Mod::module(), Func::atom(), Args::[term()]) -> hamcrest:matchspec()

reverse_match_mfa/4

reverse_match_mfa(Mod::module(), Func::atom(), Args::[term()], Desc::term()) -> hamcrest:matchspec()

starts_with/1

starts_with(X::string()) -> hamcrest:matchspec()

will_fail/0

will_fail() -> hamcrest:matchspec()

will_fail/2

will_fail(Type::atom(), Reason::term()) -> hamcrest:matchspec()


Generated by EDoc