-
Notifications
You must be signed in to change notification settings - Fork 14
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
Any way to keep the original source clean? #73
Comments
An approach like the would be possible but would make the macro processing more complicated than it is now. Something that is being looking into is using Cassette.jl to avoid having to use the An alternative that may work for you would be to just mock |
Is the Cassette version still being worked on? How bad is the performance impact? Depending on the use case, performance may or may not be a concern.... |
Should probably make I new Cassette based version. |
SimpleMock.jl is based on Cassettevand already works @tk3369 |
Maybe another option is to make the IDE hide the |
We did the experiment with Cassette some time ago at this point but unfortunately there was too much of a performance reduction in comparison to using the |
Doing it with CassetteOverlays.jl could be a good solution. |
Let's say I have a function that looks like this:
As you can see, I have to put
@mock
everywhere if I want to be able to patch all of them. The trouble is that the code does not look clean anymore. Would it be possible to do something like:The text was updated successfully, but these errors were encountered: