From 41fe6be7d738237d1ca53070bd6ddebb73190b58 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 14 Dec 2022 15:05:05 -0800 Subject: [PATCH] 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 --- docs/gmock_cook_book.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index 59aa9fc3..6a795ec0 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