Patch.Mock.Values.Callable (patch v0.6.0) View Source

Link to this section Summary

Link to this section Types

Specs

dispatch_mode() :: :apply | :list

Specs

t() :: %Patch.Mock.Values.Callable{
  dispatch: dispatch_mode(),
  target: function()
}

Link to this section Functions

Specs

advance(callable :: t()) :: t()
Link to this function

new(target, dispatch \\ :apply)

View Source

Specs

new(target :: function(), dispatch :: dispatch_mode()) :: t()
Link to this function

next(callable, arguments)

View Source

Specs

next(callable :: t(), arguments :: [term()]) :: {t(), term()}