ESpec.AssertionHelpers (ESpec v1.10.0)

View Source

Defines helper functions for modules which use ESpec. These functions wrap arguments for ESpec.ExpectTo module. See ESpec.Assertion module for corresponding 'assertion modules'

Summary

Functions

accepted(func, args \\ :any, opts \\ [pid: :any, count: :any])

be(value)

be(operator, value)

be(operator, value, arg3)

be_alive()

be_atom()

be_between(min, max)

be_binary()

be_bitstring()

be_blank()

be_boolean()

be_close_to(value, delta)

be_empty()

be_error_result()

be_false()

be_falsy()

be_float()

be_function()

be_function(arity)

be_integer()

be_list()

be_map()

be_nil()

be_number()

be_ok_result()

be_pid()

be_port()

be_printable()

be_reference()

be_struct()

be_struct(name)

be_true()

be_truthy()

be_tuple()

be_valid_string()

change(func)

change(func, value)

change(func, before, value)

contain_exactly(value)

end_with(value)

eq(value)

eql(value)

have(val)

have_all(func)

have_any(func)

have_at(pos, val)

have_byte_size(value)

have_count(value)

have_count_by(func, val)

have_first(value)

have_hd(value)

have_key(value)

have_last(value)

have_length(value)

have_max(value)

have_max_by(func, value)

have_min(value)

have_min_by(func, value)

have_size(value)

have_tl(value)

have_value(value)

match(value)

match_list(value)

match_pattern(pattern)

(macro)

raise_exception()

raise_exception(exception)

raise_exception(exception, message)

start_with(value)

throw_term()

throw_term(term)