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

Capture argument #86

Closed
horkhe opened this issue Oct 29, 2012 · 0 comments
Closed

Capture argument #86

horkhe opened this issue Oct 29, 2012 · 0 comments

Comments

@horkhe
Copy link
Contributor

horkhe commented Oct 29, 2012

It would be nice to have an ability to capture the argument that was passed as particular function parameter during a test. I suggest the following API:

-spec capture(CallNumber:: first | last | all | pos_number(),
              Mod::atom(),
              Func::atom(),
              ParameterNumber::byte()) ->
        any() | [any()]

A list of values is returned if the first meck:capture/4 parameter is all.

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

2 participants