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
..
2020-05-07 16:15:58 -04:00
2020-11-05 15:07:26 -05:00
2020-11-06 13:23:55 -05:00
2020-11-05 15:07:26 -05:00
2020-11-09 15:43:24 -05:00
2020-02-07 18:20:45 -05:00
2020-08-26 21:23:05 -04:00