ahbeck / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

need a helper to invoke MatchAndExplain() on polymorphic matchers #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Eq(5).MatchAndExplain(x, listener) doesn't compile, as Eq(5) is a
polymorphic matcher.

We should provide a helper function template s.t. a user can write:

  MatchAndExplain(Eq(5), x, listener)

similar to how he can write:

  Matches(Eq(5))(x)

This is especially useful when writing MATCHER* definitions.

Original issue reported on code.google.com by w...@google.com on 1 Feb 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Bump up the priority due to user request.

Original comment by w...@google.com on 5 Mar 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Fixed in trunk.

Original comment by w...@google.com on 6 Mar 2010 at 5:41