Update cheat_sheet.md

This commit is contained in:
Hyuk Myeong 2019-09-16 15:12:23 +09:00 committed by GitHub
parent 13073a5cd6
commit 9954babcfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,12 +573,12 @@ gMock은 어떤 mock object가 소멸될 때, 해당 mock object에 설정된 ex
using ::testing::Mock; using ::testing::Mock;
... ...
// Verifies and removes the expectations on mock_obj; // Verifies and removes the expectations on mock_obj;
// returns true iff successful. // returns true if and only if successful.
Mock::VerifyAndClearExpectations(&mock_obj); Mock::VerifyAndClearExpectations(&mock_obj);
... ...
// Verifies and removes the expectations on mock_obj; // Verifies and removes the expectations on mock_obj;
// also removes the default actions set by ON_CALL(); // also removes the default actions set by ON_CALL();
// returns true iff successful. // returns true if and only if successful.
Mock::VerifyAndClear(&mock_obj); Mock::VerifyAndClear(&mock_obj);
``` ```