From df94fc5f7ef40c941998851c5e5fbd72ddb553f6 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 23 Sep 2020 10:43:41 -0400 Subject: [PATCH] Googletest export Address OSS Issue #2463 https://github.com/google/googletest/issues/2463 PiperOrigin-RevId: 333289989 --- googlemock/docs/cook_book.md | 9 +++++---- googletest/docs/advanced.md | 8 +++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md index 6882e987..0890fb87 100644 --- a/googlemock/docs/cook_book.md +++ b/googlemock/docs/cook_book.md @@ -1132,10 +1132,11 @@ Hamcrest project, which adds `assertThat()` to JUnit. ### Using Predicates as Matchers -gMock provides a [built-in set](#MatcherList) of matchers. In case you find them -lacking, you can use an arbitrary unary predicate function or functor as a -matcher - as long as the predicate accepts a value of the type you want. You do -this by wrapping the predicate inside the `Truly()` function, for example: +gMock provides a [built-in set](cheat_sheet.md#MatcherList) of matchers. In case +you find them lacking, you can use an arbitrary unary predicate function or +functor as a matcher - as long as the predicate accepts a value of the type you +want. You do this by wrapping the predicate inside the `Truly()` function, for +example: ```cpp using ::testing::Truly; diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 32819b6b..9bca0747 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -371,9 +371,11 @@ Verifies that `val1` is less than, or almost equal to, `val2`. You can replace ### Asserting Using gMock Matchers -[gMock](../../googlemock) comes with a library of matchers for validating -arguments passed to mock objects. A gMock *matcher* is basically a predicate -that knows how to describe itself. It can be used in these assertion macros: +[gMock](../../googlemock) comes with +[a library of matchers](../../googlemock/docs/cheat_sheet.md#MatcherList) for +validating arguments passed to mock objects. A gMock *matcher* is basically a +predicate that knows how to describe itself. It can be used in these assertion +macros: