Homec4science

Fix bad advice in cook book (#2308)

Authored by Sam Sobell <sam.sobell@gmail.com> on Jul 10 2019, 16:37.

Description

Fix bad advice in cook book (#2308)

This line directly contradicts the warning that google mock spits out on unused mock calls:

NOTE: You can safely ignore the above warning unless this call should not happen.  Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call.  See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.

One or the other should be changed, and I believe the advice in this file is incorrect.

Event Timeline

Derek Mauro <761129+derekmauro@users.noreply.github.com> committed R9484:ee3aa8311720: Fix bad advice in cook book (#2308) (authored by Sam Sobell <sam.sobell@gmail.com>).Jul 10 2019, 16:37