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

Document a missing mockkObject() overload #1114

Closed
3 tasks done
polarene opened this issue Jul 10, 2023 · 1 comment · Fixed by #1175
Closed
3 tasks done

Document a missing mockkObject() overload #1114

polarene opened this issue Jul 10, 2023 · 1 comment · Fixed by #1175

Comments

@polarene
Copy link
Contributor

Prerequisites

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

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

Expected Behavior

I expected to find information in the official documentation about this overload

inline fun mockkObject(vararg objects: Any, recordPrivateCalls: Boolean = false, block: () -> Unit)

which lets you create an object mock, execute the code inside the block against it, and then unmock it at the end of the block.

Current Behavior

The official documentation is missing a section that describes the existence of this overload and its usage.

@polarene
Copy link
Contributor Author

polarene commented Nov 8, 2023

Good job, thanks.

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

Successfully merging a pull request may close this issue.

2 participants