Commit 7fb047bc authored by Abseil Team's avatar Abseil Team Committed by Derek Mauro
Browse files

Googletest export

Explain how to wrap matchers.

PiperOrigin-RevId: 357901293
parent 58937787
......@@ -477,6 +477,14 @@ which must be a permanent callback.
being matched and the matcher parameters).
3. You can use `PrintToString(x)` to convert a value `x` of any type to a
string.
4. You can use `ExplainMatchResult()` in a custom matcher to wrap another
matcher, for example:
```cpp
MATCHER_P(NestedPropertyMatches, matcher, "") {
return ExplainMatchResult(matcher, arg.nested().property(), result_listener);
}
```
## Actions {#ActionList}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment