From 37ca58abcb5ef3a1fc2264f4cd7a2c0ef77c2a44 Mon Sep 17 00:00:00 2001 From: Hesky Fisher Date: Thu, 12 May 2022 13:22:20 -0400 Subject: [PATCH] Add a manual anchor gMock outputs text like: NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/master/docs/gmock_cook_book.md#knowing-when-to-expect for details. This pull request adds the manual anchor to make that link work. --- 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 b6abffae..6d729d5f 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -1485,7 +1485,7 @@ mock object and gMock. ## Setting Expectations -### Knowing When to Expect {#UseOnCall} +### Knowing When to Expect {#UseOnCall} **`ON_CALL`** is likely the *single most under-utilized construct* in gMock.