summaryrefslogtreecommitdiffstats
path: root/docs/gmock_cook_book.md
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-04-27 20:22:33 (GMT)
committerDerek Mauro <dmauro@google.com>2021-04-29 14:40:29 (GMT)
commit680a5aa337d655b916e9048fe8f2ff69e9d4998a (patch)
tree263a2fa805ac7a6ce77da4a0245d0cba60e02548 /docs/gmock_cook_book.md
parent719fd2d36fdf98d14ae15618c96d445e7fe00843 (diff)
downloadgoogletest-680a5aa337d655b916e9048fe8f2ff69e9d4998a.zip
googletest-680a5aa337d655b916e9048fe8f2ff69e9d4998a.tar.gz
googletest-680a5aa337d655b916e9048fe8f2ff69e9d4998a.tar.bz2
Googletest export
Move matchers reference from cheat sheet into its own document PiperOrigin-RevId: 370749693
Diffstat (limited to 'docs/gmock_cook_book.md')
-rw-r--r--docs/gmock_cook_book.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md
index bb3f0bd..5b8910b 100644
--- a/docs/gmock_cook_book.md
+++ b/docs/gmock_cook_book.md
@@ -1184,11 +1184,12 @@ Hamcrest project, which adds `assertThat()` to JUnit.
### Using Predicates as Matchers
-gMock provides a [built-in set](gmock_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:
+gMock provides a set of built-in matchers for matching arguments with expected
+values—see the [Matchers Reference](reference/matchers.md) for more information.
+In case you find the built-in set 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;