googletest/googlemock/include/gmock
Abseil Team 0c400f67fc Googletest export
GMock: Make Truly explain when it fails

I just wrote a test that had a matcher of the form
  Optional(AllOf(
    SomeMatcher,
    SomeOtherMatcher,
    Truly(SomePredicate)))

The predicate failed, the other two matchers succeeded, and I got a hard-to-interpret message saying that the value in the optional "didn't match". Didn't match what?

This change improves situations like that slightly by having Truly explain to its result listener when it fails. When there are multiple Trulys in an AllOf, there will be some ambiguity, but it will at least provide more information than right now.

PiperOrigin-RevId: 341105141
2020-11-09 15:43:24 -05:00
..
internal Googletest export 2020-05-07 16:15:58 -04:00
gmock-actions.h Googletest export 2020-11-05 15:07:26 -05:00
gmock-cardinalities.h restore mistakenly removed iffs in their explicit form 2019-08-20 12:14:22 +02:00
gmock-function-mocker.h Googletest export 2020-11-06 13:23:55 -05:00
gmock-generated-actions.h Googletest export 2020-11-05 15:07:26 -05:00
gmock-generated-actions.h.pump Googletest export 2020-11-05 15:07:26 -05:00
gmock-matchers.h Googletest export 2020-11-09 15:43:24 -05:00
gmock-more-matchers.h Googletest export 2020-02-07 18:20:45 -05:00
gmock-nice-strict.h Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files 2020-10-07 18:27:41 +11:00
gmock-spec-builders.h Fix a -Wdeprecated warning. 2020-04-23 22:22:34 -04:00
gmock.h Googletest export 2020-08-26 21:23:05 -04:00