Module hamcrest

Hamcrest API.

Copyright © 2010 Tim Watson.

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

References

Description

Hamcrest API

Data Types

matchspec()

abstract datatype: matchspec()

Function Index

assert_that/2
assert_that/3
check/2
describe/2
heckle/2
is_matcher/1Returns true if the specified term is a valid hamcrest matcher, otherwise false.
match/2
match/3

Function Details

assert_that/2

assert_that(Value::term(), MatchSpec::matchspec()) -> true | no_return()

assert_that/3

assert_that(Value::term(), MatchSpec::matchspec(), RunAfter::fun(() -> any())) -> true | no_return()

check/2

check(Value::term(), MatchSpec::matchspec()) -> true | {assertion_failed, term()}

describe/2

describe(Ms, Actual) -> any()

heckle/2

heckle(MatchSpec::matchspec(), Actual::any()) -> any()

is_matcher/1

is_matcher(Something::any()) -> boolean()

Returns true if the specified term is a valid hamcrest matcher, otherwise false.

match/2

match(Value::term(), MatchSpec::matchspec()) -> boolean()

match/3

match(Value::term(), MatchSpec::matchspec(), RunAfter::fun(() -> any())) -> boolean()


Generated by EDoc