Skip to content

Capture slots #33

Description

@nrxus

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions