summaryrefslogtreecommitdiffstats
path: root/docs/reference
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-02-10 00:19:22 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-02-10 00:20:06 (GMT)
commit0e402173c97aea7a00749e825b194bfede4f2e45 (patch)
tree17a54c2ff3dc4712c1bda8cf53db4c42bcdf26a7 /docs/reference
parent06519cedc3159de8b36a504766ad6b7966555f10 (diff)
downloadgoogletest-0e402173c97aea7a00749e825b194bfede4f2e45.zip
googletest-0e402173c97aea7a00749e825b194bfede4f2e45.tar.gz
googletest-0e402173c97aea7a00749e825b194bfede4f2e45.tar.bz2
Add a 3-arg overload for ResultOf() matcher that takes a description string for better error messages.
PiperOrigin-RevId: 427598749 Change-Id: I8c7a5d7b2dde017641534f1c7eed8dd56c33e845
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/matchers.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/reference/matchers.md b/docs/reference/matchers.md
index 47d2808..0f57db4 100644
--- a/docs/reference/matchers.md
+++ b/docs/reference/matchers.md
@@ -194,6 +194,7 @@ messages, you can use:
| Matcher | Description |
| :--------------- | :------------------------------------------------ |
| `ResultOf(f, m)` | `f(argument)` matches matcher `m`, where `f` is a function or functor. |
+| `ResultOf(result_description, f, m)` | The same as the two-parameter version, but provides a better error message.
## Pointer Matchers