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

Need to provide an easier way to define matchers #14

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment
Closed

Need to provide an easier way to define matchers #14

GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

A user can define a custom matcher either by defining a free function or 
implementing the MatcherInterface.  Google Mock provides several helpers to 
make the latter easier, but still they are not quite straightforward.

We can provide macros like

  MOCK_MATCHER(MatcherName) { .... matcher body ... }
  MOCK_MATCHER_P2(MatcherName, arg1_name, arg2_name) { ... matcher body ... 
}

to make defining single-use matchers even easier.

Original issue reported on code.google.com by shiq...@gmail.com on 23 Dec 2008 at 5:13

@GoogleCodeExporter
Copy link
Author

Original comment by zhanyong...@gmail.com on 22 Feb 2009 at 5:53

  • Changed state: Fixed

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