Skip to content

Commit

Permalink
Fix a typo in the gMock sample code for Defining a Custom Matcher Class.
Browse files Browse the repository at this point in the history
EXPECT_CALL doesn't seem to make much sense here. I think the intent was to use EXPECT_THAT instead.

PiperOrigin-RevId: 495427663
Change-Id: I39a16ea37282729d34017c6bcd331a60cedf1fbe
  • Loading branch information
Abseil Team authored and copybara-github committed Dec 14, 2022
1 parent e38ef3b commit 41fe6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gmock_cook_book.md
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ class BarPlusBazEqMatcher {

...
Foo foo;
EXPECT_CALL(foo, BarPlusBazEq(5))...;
EXPECT_THAT(foo, BarPlusBazEq(5))...;
```

### Matching Containers
Expand Down

0 comments on commit 41fe6be

Please sign in to comment.