Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EXPECT_CALL instead of ON_CALL for read_byte #130

Merged
merged 2 commits into from
Aug 31, 2019

Conversation

johnor
Copy link
Collaborator

@johnor johnor commented Aug 24, 2019

Mixing ON_CALL and EXPECT_CALL can be a bit tricky in gmock. We should also know exactly when reads are performed, so better to use EXPECT_CALL and be explicit everywhere.
Should help #107.

@johnor johnor changed the title Use EXPECT_CALL instead off ON_CALL for read_byte Use EXPECT_CALL instead of ON_CALL for read_byte Aug 25, 2019
Copy link
Collaborator

@robinlinden robinlinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to be explicit about this, the WillRepeatedlys should probably be replaced with WillOnces?

@johnor
Copy link
Collaborator Author

johnor commented Aug 31, 2019

If we're going to be explicit about this, the WillRepeatedlys should probably be replaced with WillOnces?

Good idea! Updated now.

Copy link
Collaborator

@robinlinden robinlinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Will help a lot when we want to fix up all the dummy reads/writes.

@johnor johnor merged commit 43e201a into evilcorpltd:master Aug 31, 2019
@johnor johnor deleted the use-expect-calls branch August 31, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants