Spyanator v0.0.3 Spyanator.Assertions.Calls.Assertions
Assertions that should be used when testing the return value of a spy
Summary
Functions
Assertion that ensures a function was called at least n number of times
Assertion that ensures a function was called at most n number of times
Assertion that ensures a function was called exactly n number of times
Assertion that ensures a function was called once
Assertion that ensures a function was called twice
Assertion that ensures a function was called twice
Functions
at_least(calls, count)
at_least(false, any) :: boolean
at_least(%Spyanator.Assertions.Calls{actual_arguments: term, call_count: term, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}, integer) :: boolean
at_least(false, any) :: boolean
at_least(%Spyanator.Assertions.Calls{actual_arguments: term, call_count: term, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}, integer) :: boolean
Assertion that ensures a function was called at least n number of times
Assertion that ensures a function was called exactly n number of times
once(calls)
once(boolean) :: boolean
once(%Spyanator.Assertions.Calls{actual_arguments: term, call_count: term, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}) :: boolean
Assertion that ensures a function was called once
Assertion that ensures a function was called twice