We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current implementation relies on scala 2 annotation macros.
There is no way to generate new methods/objects with scala 3 macros, so the current approach is not applicable to scala 3.
Additionally current approach relies on Assertion which is a subject for deprecation.
Assertion
1 possible solution is to create something similar to ScalaMock:
ScalaMock
val expect = (mock[Srv].method(_, _, _)).expect((a, b, c)=> assertTrue(a == 1, b == "", c < 0)).returns(valueF(_ => ???)).atMost(0) val lessVerbose = mock[Srv](_.method _).assertParams(_ == 1, _ == "", _ < 0).returnF(_ => ???).atMost(0)
The text was updated successfully, but these errors were encountered:
Hi! I've created a stubbing library for scala 3 and probably it can replace zio-mock https://github.com/goshacodes/backstub
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Current implementation relies on scala 2 annotation macros.
There is no way to generate new methods/objects with scala 3 macros, so the current approach is not applicable to scala 3.
Additionally current approach relies on
Assertion
which is a subject for deprecation.1 possible solution is to create something similar to
ScalaMock
:The text was updated successfully, but these errors were encountered: