Skip to content

Commit 41fe6be

Browse files
Abseil Teamcopybara-github
Abseil Team
authored andcommitted
Fix a typo in the gMock sample code for Defining a Custom Matcher Class.
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
1 parent e38ef3b commit 41fe6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gmock_cook_book.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ class BarPlusBazEqMatcher {
13451345

13461346
...
13471347
Foo foo;
1348-
EXPECT_CALL(foo, BarPlusBazEq(5))...;
1348+
EXPECT_THAT(foo, BarPlusBazEq(5))...;
13491349
```
13501350

13511351
### Matching Containers

0 commit comments

Comments
 (0)