Googletest export
Add a note to recommend against using `Property()` for functions that the test author does not own. PiperOrigin-RevId: 355295183
This commit is contained in:
committed by
Dino Radaković
parent
aea7f60bf5
commit
b6323d216d
@@ -400,6 +400,12 @@ messages, you can use:
|
||||
| `Property(property_name, &class::property, m)` | The same as the two-parameter version, but provides a better error message.
|
||||
<!-- mdformat on -->
|
||||
|
||||
**Notes:**
|
||||
|
||||
* Don't use `Property()` against member functions that you do not own, because
|
||||
taking addresses of functions is fragile and generally not part of the
|
||||
contract of the function.
|
||||
|
||||
### Matching the Result of a Function, Functor, or Callback
|
||||
|
||||
<!-- mdformat off(no multiline tables) -->
|
||||
|
||||
Reference in New Issue
Block a user