You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
something like overwrite(module, stub),
that would iterate through each signature a sub accepts
and call @eval(module, $stub.name(<ARGSSIG>)=stub(<ARGS>)
But I think this can wait until Cassette based Mocking.jl arrives; so as to ensure it will be compatible with that, rather than unrecoverably overwritting every method
The text was updated successfully, but these errors were encountered:
Right now stubs never overwrite methods.
But it would be quiet possible to have a:
something like
overwrite(module, stub)
,that would iterate through each signature a sub accepts
and call
@eval(module, $stub.name(<ARGSSIG>)=stub(<ARGS>)
But I think this can wait until Cassette based Mocking.jl arrives; so as to ensure it will be compatible with that, rather than unrecoverably overwritting every method
The text was updated successfully, but these errors were encountered: