summaryrefslogtreecommitdiffstats
path: root/docs/gmock_cook_book.md
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-12-14 23:05:05 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-12-14 23:06:09 (GMT)
commit41fe6be7d738237d1ca53070bd6ddebb73190b58 (patch)
tree2ae862171ad277bb7b6181ac3d7124ddf4eac277 /docs/gmock_cook_book.md
parente38ef3be887afc0089005e394c5001002e313960 (diff)
downloadgoogletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.zip
googletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.tar.gz
googletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.tar.bz2
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
Diffstat (limited to 'docs/gmock_cook_book.md')
-rw-r--r--docs/gmock_cook_book.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md
index 59aa9fc..6a795ec 100644
--- a/docs/gmock_cook_book.md
+++ b/docs/gmock_cook_book.md
@@ -1345,7 +1345,7 @@ class BarPlusBazEqMatcher {
...
Foo foo;
- EXPECT_CALL(foo, BarPlusBazEq(5))...;
+ EXPECT_THAT(foo, BarPlusBazEq(5))...;
```
### Matching Containers