Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to confirm that all mock/spy invocations are verified #659

Closed
3 tasks done
erikhuizinga opened this issue Jul 7, 2021 · 3 comments
Closed
3 tasks done
Labels

Comments

@erikhuizinga
Copy link
Contributor

erikhuizinga commented Jul 7, 2021

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version (v1.12.0)
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

There is fun confirmVerified(vararg mocks: Any), but it might be handy to just have a shorthand to verify that all invocations of all mocks/spies are verified. Suggested signature: fun confirmAllVerified(): Unit.

Current Behavior

There is no function that allows to confirm that all mock/spy calls were verified.

@Raibaz
Copy link
Collaborator

Raibaz commented Jul 7, 2021

This looks really like a duplicate of #334.

@erikhuizinga
Copy link
Contributor Author

It might be, although the approach seems a little different. I'll leave it up to you to close this issue if you think this is not the way to go, e.g. if the other issue would be a better approach.

@stale
Copy link

stale bot commented Sep 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are sure that this issue is important and should not be marked as stale just ask to put an important label.

@stale stale bot added the stale label Sep 19, 2021
@stale stale bot closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants