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

Is it possible to mock template methods? #110

Open
cleeland opened this issue Dec 12, 2018 · 1 comment
Open

Is it possible to mock template methods? #110

cleeland opened this issue Dec 12, 2018 · 1 comment
Labels

Comments

@cleeland
Copy link

I have a class with a template method, and I wish to mock that template method. For example:

class MyMockType {
...
  template <typename Lambda>
  auto DoWhileLocked(uint32_t id, Lambda&& some_operation)
  {
    ...
  }
...

Is this possible with trompeloiel?

@rollbear
Copy link
Owner

Unfortunately, no. Early on, I made some experiments with this, and it looks like it's possible to add, but it would be a major task.

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

No branches or pull requests

2 participants