nagyistoce / googlemock

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

gmock doctor needs to diagnose failure to ignore action result in DoAll() #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Alasdair Mackintosh reported:

I have the following construct:

EXPECT_ALL(mock, GetValue()).DoAll(Invoke(f1), Invoke(f2));

This will invoke f1, then invoke f2. The result of calling
mock.GetValue() will be whatever f2 returns.

The result of f1 is ignored. However, if f1 is not a void method, you
get a rather incomprehensible set of compiler error messages that
gMock doctor can't understand.

Original issue reported on code.google.com by zhanyong...@gmail.com on 12 Jun 2009 at 12:38

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 27 Sep 2010 at 9:26