mirror of
https://github.com/google/googletest.git
synced 2025-12-13 15:10:01 +08:00
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: 224929783
|
||
|---|---|---|
| .. | ||
| internal | ||
| gmock-actions.h | ||
| gmock-cardinalities.h | ||
| gmock-function-mocker.h | ||
| gmock-generated-actions.h | ||
| gmock-generated-actions.h.pump | ||
| gmock-generated-function-mockers.h | ||
| gmock-generated-function-mockers.h.pump | ||
| gmock-generated-matchers.h | ||
| gmock-generated-matchers.h.pump | ||
| gmock-generated-nice-strict.h | ||
| gmock-generated-nice-strict.h.pump | ||
| gmock-matchers.h | ||
| gmock-more-actions.h | ||
| gmock-more-matchers.h | ||
| gmock-spec-builders.h | ||
| gmock.h | ||