6ef5913813
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 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
gmock_all_test.cc | ||
gmock_ex_test.cc | ||
gmock_leak_test_.cc | ||
gmock_leak_test.py | ||
gmock_link_test.cc | ||
gmock_link_test.h | ||
gmock_link2_test.cc | ||
gmock_output_test_.cc | ||
gmock_output_test_golden.txt | ||
gmock_output_test.py | ||
gmock_stress_test.cc | ||
gmock_test_utils.py | ||
gmock_test.cc | ||
gmock-actions_test.cc | ||
gmock-cardinalities_test.cc | ||
gmock-function-mocker_nc_test.py | ||
gmock-function-mocker_nc.cc | ||
gmock-function-mocker_test.cc | ||
gmock-generated-actions_test.cc | ||
gmock-generated-function-mockers_test.cc | ||
gmock-generated-internal-utils_test.cc | ||
gmock-generated-matchers_test.cc | ||
gmock-internal-utils_test.cc | ||
gmock-matchers_test.cc | ||
gmock-more-actions_test.cc | ||
gmock-nice-strict_test.cc | ||
gmock-port_test.cc | ||
gmock-pp_test.cc | ||
gmock-pp-string_test.cc | ||
gmock-spec-builders_test.cc |