Closed GoogleCodeExporter closed 9 years ago
gmock doesn't intend to support this kind of usage. In general, matchers
cannot have
side effects, as gmock doesn't guarantee how many times a matcher will be
invoked.
In this example, one matcher has the side effect of invoking a mock method,
which
will affect the state of the mock object. Please try to rewrite the code to
avoid
invoking a mock method in a matcher.
Original comment by w...@google.com
on 1 Jun 2010 at 6:26
Original issue reported on code.google.com by
s22c...@gmail.com
on 31 May 2010 at 3:37