Spyanator v0.0.3 Spyanator.Assertions.Calls.Chains
functional chains that can be used to inspect how many times a function was called
Summary
Functions
Used to start a functional chain that inspects the calls to a function
Used to make an assertion on the arguments that a function received
Used to make an assertion on the arguments that a function received
Functions
received(spy_module, func_name)
received(module, atom) :: boolean | %Spyanator.Assertions.Calls{actual_arguments: term, call_count: pos_integer, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}
Used to start a functional chain that inspects the calls to a function
Used to make an assertion on the arguments that a function received
with_arguments(calls, expected_arguments)
with_arguments(%Spyanator.Assertions.Calls{actual_arguments: term, call_count: term, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}, [any]) :: false | %Spyanator.Assertions.Calls{actual_arguments: term, call_count: term, expected_arguments: term, expected_call_count: term, func_name: term, modifier: term, module: term}
Used to make an assertion on the arguments that a function received