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

Link to this section Summary

Link to this section Types

@type dispatch_mode() :: :apply | :list
@type dispatch_option() :: {:dispatch, dispatch_mode()}
@type evaluate_mode() :: :passthrough | :strict
@type evaluate_option() :: {:evaluate, evaluate_mode()}
@type option() :: dispatch_option() | evaluate_option()
@type t() :: %Patch.Mock.Values.Callable{
  dispatch: dispatch_mode(),
  evaluate: evaluate_mode(),
  target: function()

Link to this section Functions

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

new(target, options \\ [])

View Source
@spec new(target :: function(), options :: [option()]) :: t()
Link to this function

next(callable, arguments)

View Source
@spec next(callable :: t(), arguments :: [term()]) :: {:ok, t(), term()} | :error