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 slots #33

Open
nrxus opened this issue Mar 21, 2021 · 0 comments
Open

Capture slots #33

nrxus opened this issue Mar 21, 2021 · 0 comments

Comments

@nrxus
Copy link
Owner

nrxus commented Mar 21, 2021

Add an argument matcher that is able to capture an argument for later verification.

Potential pitfalls:

  • It will probably require the argument to be cloneable + 'static. This is to help prevent the argument being dropped before the slot.
  • It will probably require the slot to be surrounded by some sort of Rc<RefCell<T>>. This will help prevent any soundness issues with the slot being dropped before the last call to the mocked method.

cc: @muscovite

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

No branches or pull requests

1 participant