Googletest export
Internal change PiperOrigin-RevId: 356867746
This commit is contained in:
@@ -1250,12 +1250,10 @@ that satisfies matcher `m`.
|
||||
|
||||
For example:
|
||||
|
||||
<!-- mdformat off(github rendering does not support multiline tables) -->
|
||||
| Expression | Description |
|
||||
| :--------------------------- | :--------------------------------------- |
|
||||
| `Field(&Foo::number, Ge(3))` | Matches `x` where `x.number >= 3`. |
|
||||
| `Property(&Foo::name, StartsWith("John "))` | Matches `x` where `x.name()` starts with `"John "`. |
|
||||
<!-- mdformat on -->
|
||||
|
||||
Note that in `Property(&Foo::baz, ...)`, method `baz()` must take no argument
|
||||
and be declared as `const`. Don't use `Property()` against member functions that
|
||||
@@ -4123,7 +4121,6 @@ If you are writing a function that returns an `ACTION` object, you'll need to
|
||||
know its type. The type depends on the macro used to define the action and the
|
||||
parameter types. The rule is relatively simple:
|
||||
|
||||
<!-- mdformat off(GitHub does not support multiline tables) -->
|
||||
|
||||
| Given Definition | Expression | Has Type |
|
||||
| ----------------------------- | ------------------- | --------------------- |
|
||||
@@ -4135,7 +4132,6 @@ parameter types. The rule is relatively simple:
|
||||
| `ACTION_TEMPLATE(Baz, HAS_m_TEMPLATE_PARAMS(...), AND_2_VALUE_PARAMS(p1, p2))` | `Baz<t1, ..., t_m>(bool_value, int_value)` | `BazActionP2<t1, ..., t_m, bool, int>` |
|
||||
| ... | ... | ... |
|
||||
|
||||
<!-- mdformat on -->
|
||||
|
||||
Note that we have to pick different suffixes (`Action`, `ActionP`, `ActionP2`,
|
||||
and etc) for actions with different numbers of value parameters, or the action
|
||||
|
||||
Reference in New Issue
Block a user