matlab.mock.actions.Invoke Class
Namespace: matlab.mock.actions
Invoke function handle when method is called
Description
To specify that the framework invokes a function handle to determine outputs when a mock
object method is called, use the Invoke
class. This action differs from the
AssignOutputs
action, which returns values that are defined when you create
the AssignOutputs
instance.
Construction
action = invoke(
invokes the function specified
by fh
)fh
when a method is called.
Input Arguments
Properties
Methods
repeat | Repeat invoking function handle |
then | Action for mock object interaction or action subsequent to invoking function handle |
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Version History
Introduced in R2018b