onArgumentsMatching

Configures a mock behavior for the associated callable to be triggered when the supplied condition is satisfied based on the provided arguments.

Parameters

condition

A suspendable condition function that takes an instance of ToolFromCallable.VarArgs and evaluates to true if the action should be executed for the given arguments.