elephant v0.1.0 Elephant

Link to this section Summary

Link to this section Types

Link to this type

argument_matcher()

argument_matcher() :: %{called_with: [any()]}
Link to this type

call_count_matcher()

call_count_matcher() :: %{times: integer()}

Link to this section Functions

Link to this function

called_with(args)

called_with([any()]) :: argument_matcher()
Link to this function

mock(name, arity, stub_value \\ nil)

mock(atom(), integer(), any()) :: {:ok, function()}
Link to this function

verify(name, map)

verify(atom(), call_count_matcher()) :: bool()
verify(atom(), argument_matcher()) :: bool()