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

Capturing in private suspend functions does not work #48

Closed
nahuelmyob opened this issue Mar 21, 2018 · 4 comments
Closed

Capturing in private suspend functions does not work #48

nahuelmyob opened this issue Mar 21, 2018 · 4 comments
Labels

Comments

@nahuelmyob
Copy link

For example given the following class:

class MyClass {

  private suspend myPrivateCall(arg1) {
  
   }

}

And then in the test:

val myClassSpy = spyk(MyClass())

every { myClassSpy["myPrivateCall"](arg1) } returns "something"

Throws: java.lang.IllegalArgumentException: Callable expects X arguments, but Y were provided.

This only happens if the function is suspend private function.

@oleksiyp
Copy link
Collaborator

Thanks. Let me check it

oleksiyp added a commit that referenced this issue Mar 21, 2018
@oleksiyp oleksiyp added the bug label Mar 21, 2018
@oleksiyp
Copy link
Collaborator

Version 1.7.14 released, please check if it fixes the issue and close the ticket

@oleksiyp
Copy link
Collaborator

No activity, closing

@nahuelmyob
Copy link
Author

thanks!

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