Closed tudortimi-ifx closed 6 years ago
I was on the fence for this one, partly b/c I'm having a hard time seeing how we can weave together all the EXPECT_CALL possibilities from googlemock. you reckon it'll best to have users queue up a set of multiple expectations? I don't mind that except then it means expectations automatically expire after 1 usage... which now that I think about it might be what we want anyway...?
GoogleMock also has this functionality:
In our case we don't match on arguments, since we only use `ON_CALL.
In GoogleMock, expectations also "expire" after one usage.
expectations are buffered now, each applies exactly once. errors are flagged en masse on 'check()'. they're also cleared on 'check()'.
Whenever a new call to 'with_args(...)' is made, the previous expectation is overwritten. Expectations should be collected.