aboutsummaryrefslogtreecommitdiff
path: root/docs/gmock_cheat_sheet.md
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-02-02 14:30:11 -0800
committerDino Radaković <dinor@google.com>2021-02-05 10:40:53 -0800
commitaea7f60bf52e16b697fa238e90a0551643765753 (patch)
tree33f229badc07f4aa922ebe033812c77eaf3e0d24 /docs/gmock_cheat_sheet.md
parent8599d312ce4eaec0cf403b04f54d1d580edfea71 (diff)
downloadgoogletest-aea7f60bf52e16b697fa238e90a0551643765753.zip
googletest-aea7f60bf52e16b697fa238e90a0551643765753.tar.gz
googletest-aea7f60bf52e16b697fa238e90a0551643765753.tar.bz2
Googletest export
Update description of `Property()` matcher PiperOrigin-RevId: 355253498
Diffstat (limited to 'docs/gmock_cheat_sheet.md')
-rw-r--r--docs/gmock_cheat_sheet.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gmock_cheat_sheet.md b/docs/gmock_cheat_sheet.md
index 462da85..f2b5ab1 100644
--- a/docs/gmock_cheat_sheet.md
+++ b/docs/gmock_cheat_sheet.md
@@ -396,7 +396,7 @@ messages, you can use:
| `Key(e)` | `argument.first` matches `e`, which can be either a value or a matcher. E.g. `Contains(Key(Le(5)))` can verify that a `map` contains a key `<= 5`. |
| `Pair(m1, m2)` | `argument` is an `std::pair` whose `first` field matches `m1` and `second` field matches `m2`. |
| `FieldsAre(m...)` | `argument` is a compatible object where each field matches piecewise with `m...`. A compatible object is any that supports the `std::tuple_size<Obj>`+`get<I>(obj)` protocol. In C++17 and up this also supports types compatible with structured bindings, like aggregates. |
-| `Property(&class::property, m)` | `argument.property()` (or `argument->property()` when `argument` is a plain pointer) matches matcher `m`, where `argument` is an object of type _class_. |
+| `Property(&class::property, m)` | `argument.property()` (or `argument->property()` when `argument` is a plain pointer) matches matcher `m`, where `argument` is an object of type _class_. The method `property()` must take no argument and be declared as `const`. |
| `Property(property_name, &class::property, m)` | The same as the two-parameter version, but provides a better error message.
<!-- mdformat on -->