summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-09-23 14:43:41 (GMT)
committervslashg <gfalcon@google.com>2020-09-24 16:06:34 (GMT)
commitdf94fc5f7ef40c941998851c5e5fbd72ddb553f6 (patch)
treedc965fa8bbbec710950571cf2bd1876b9e1b3c9f /googlemock
parent634c52d99cf40306c506e16cc0e9827e387d33f2 (diff)
downloadgoogletest-df94fc5f7ef40c941998851c5e5fbd72ddb553f6.zip
googletest-df94fc5f7ef40c941998851c5e5fbd72ddb553f6.tar.gz
googletest-df94fc5f7ef40c941998851c5e5fbd72ddb553f6.tar.bz2
Googletest export
Address OSS Issue #2463 https://github.com/google/googletest/issues/2463 PiperOrigin-RevId: 333289989
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/docs/cook_book.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md
index 6882e98..0890fb8 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;