summaryrefslogtreecommitdiffstats
path: root/googlemock/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-12-07 21:17:26 (GMT)
committerAndy Getz <durandal@google.com>2020-12-07 23:04:12 (GMT)
commita02a591605dfef9addde49634bf010dbe8f95c50 (patch)
tree6258f1a86109731e61e328b5eac6cdce89146f85 /googlemock/docs
parent7bf5057a04eebb12cb731bfd6b3a19c510dc5087 (diff)
downloadgoogletest-a02a591605dfef9addde49634bf010dbe8f95c50.zip
googletest-a02a591605dfef9addde49634bf010dbe8f95c50.tar.gz
googletest-a02a591605dfef9addde49634bf010dbe8f95c50.tar.bz2
Googletest export
Add a `Pointer` matcher as an analog to `Pointee`. Similar to `Pointee`, `Pointer` works with either raw or smart pointers and allows creating a matcher like Pointer(Eq(foo)) for smart pointers. PiperOrigin-RevId: 346164768
Diffstat (limited to 'googlemock/docs')
-rw-r--r--googlemock/docs/cheat_sheet.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/docs/cheat_sheet.md b/googlemock/docs/cheat_sheet.md
index bcb4ce9..fcb9201 100644
--- a/googlemock/docs/cheat_sheet.md
+++ b/googlemock/docs/cheat_sheet.md
@@ -421,6 +421,7 @@ messages, you can use:
| Matcher | Description |
| :------------------------ | :---------------------------------------------- |
| `Pointee(m)` | `argument` (either a smart pointer or a raw pointer) points to a value that matches matcher `m`. |
+| `Pointer(m)` | `argument` (either a smart pointer or a raw pointer) contains a pointer that matches `m`. `m` will match against the raw pointer regardless of the type of `argument`. |
| `WhenDynamicCastTo<T>(m)` | when `argument` is passed through `dynamic_cast<T>()`, it matches matcher `m`. |
<!-- mdformat on -->