diff options
author | Abseil Team <absl-team@google.com> | 2020-12-08 17:37:32 (GMT) |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-12-09 00:15:35 (GMT) |
commit | e5644f5f12ff3d5b2232dabc1c5ea272a52e8155 (patch) | |
tree | 170e3f0de02818b0c15709da473cfb6efdd7f0b6 /googlemock/docs | |
parent | 8779937dd05016e3a96e477d2bb1f94947486605 (diff) | |
download | googletest-e5644f5f12ff3d5b2232dabc1c5ea272a52e8155.zip googletest-e5644f5f12ff3d5b2232dabc1c5ea272a52e8155.tar.gz googletest-e5644f5f12ff3d5b2232dabc1c5ea272a52e8155.tar.bz2 |
Googletest export
Introduce a new `Address` matcher to gmock.
PiperOrigin-RevId: 346344591
Diffstat (limited to 'googlemock/docs')
-rw-r--r-- | googlemock/docs/cheat_sheet.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/docs/cheat_sheet.md b/googlemock/docs/cheat_sheet.md index fcb9201..dc2428e 100644 --- a/googlemock/docs/cheat_sheet.md +++ b/googlemock/docs/cheat_sheet.md @@ -420,6 +420,7 @@ messages, you can use: <!-- mdformat off(no multiline tables) --> | Matcher | Description | | :------------------------ | :---------------------------------------------- | +| `Address(m)` | the result of `std::addressof(argument)` matches `m`. | | `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`. | |