Homec4science

Googletest export

Authored by Abseil Team <absl-team@google.com> on Dec 11 2018, 20:10.

Description

Googletest export

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

Details

Committed
jueminyang <jueminyang@google.com>Dec 12 2018, 17:54
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:b545089f5117: Merge pull request #2004 from cotsog/patch-1
Branches
Unknown
Tags
Unknown

Event Timeline

jueminyang <jueminyang@google.com> committed R9484:6ef591381372: Googletest export (authored by Abseil Team <absl-team@google.com>).Dec 12 2018, 17:54