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

Check arguments of callback function #657

@rekby

Description

@rekby

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions