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-03-17 17:20:23 -04:00
2020-07-15 14:09:29 -04:00
2020-07-09 13:35:10 -04:00
2019-07-17 13:38:25 -04:00
2018-10-29 13:46:16 -04:00
2020-05-28 19:53:43 -04:00
2018-11-20 13:29:40 -05:00
2019-11-22 16:33:15 -05:00
2020-11-09 15:43:24 -05:00
2020-08-26 21:23:05 -04:00
2019-01-02 16:51:33 -05:00
2018-11-20 13:30:24 -05:00
2019-09-12 18:21:31 +02:00