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

Allow calling original function from within expect fun #2

Closed
eproxus opened this issue May 5, 2010 · 1 comment
Closed

Allow calling original function from within expect fun #2

eproxus opened this issue May 5, 2010 · 1 comment

Comments

@eproxus
Copy link
Owner

eproxus commented May 5, 2010

It should be possible to call the original function from within the expect fun and use the result before returning it:

fun() -> Result = mock:call_original(Args), use(Result) end
@eproxus
Copy link
Owner Author

eproxus commented May 30, 2011

Possible to do with use of process dictionary in caller (see exec/4 in put-get branch).

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

No branches or pull requests

1 participant