You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocking functions with callbacks usually involves calling the callback with configurable arguments. It would be nice, if Mokka could directly support this.
How to support callbacks with multiple arguments? (Is tuple splat still a thing, or has it been removed in some Swift version?)
How to support multiple callbacks?
What about functions that have a callback and a return value?
Can we somehow get rid of the requirement to separately specify the generic type parameters for the callback arguments and the callback return value? This is not very intuitive.
The text was updated successfully, but these errors were encountered:
Mocking functions with callbacks usually involves calling the callback with configurable arguments. It would be nice, if Mokka could directly support this.
Something like this could work:
This would then be used like this:
There are some open questions, though:
The text was updated successfully, but these errors were encountered: