Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Check arguments of callback function #657

Open
rekby opened this issue Jun 16, 2022 · 0 comments
Open

Check arguments of callback function #657

rekby opened this issue Jun 16, 2022 · 0 comments

Comments

@rekby
Copy link

rekby commented Jun 16, 2022

Requested feature Check type of arguments and return type for callback function in Do/DoAndReturn while add callback, similar to check types of return values in Return function.

Why the feature is needed Now Do/DoAndReturn functions check count arguments only, but real type checked at call moment. It will be better cause error on mock initialization instead of mock call - because I see line where initialization failed.

(Optional) Proposed solution Check callback arguments in Do and DoAndReturn about it same as original func arg type of assignable from them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant