| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| build-aux | ||
| cmake | ||
| docs | ||
| include/gmock | ||
| make | ||
| msvc | ||
| scripts | ||
| src | ||
| test | ||
| CMakeLists.txt | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| Makefile.am | ||
| README.md | ||
| configure.ac |
The gmock matchers have a concept of MatchAndExpain; where the details of the
matching are written to a "result listener". A matcher can avoid creating
expensive debug info by checking result_listener->IsInterested(); but,
unfortunately, the default matcher code (called from EXPECT_THAT) is always
"interested".
This change implements EXPECT_THAT matching to first run the matcher in a "not
interested" mode; and then run it a second time ("interested") only if the
match fails.
PiperOrigin-RevId: 225036073
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| build-aux | Loading commit data... | |
| cmake | Loading commit data... | |
| docs | Loading commit data... | |
| include/gmock | Loading commit data... | |
| make | Loading commit data... | |
| msvc | Loading commit data... | |
| scripts | Loading commit data... | |
| src | Loading commit data... | |
| test | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| CONTRIBUTORS | Loading commit data... | |
| LICENSE | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| README.md | Loading commit data... | |
| configure.ac | Loading commit data... |