llvm-capstone/third-party
Sam McCall fe8a168161 [unittest] teach gTest to print entries of DenseMap as pairs
When an assertion like the following fails:
   EXPECT_THAT(map, ElementsAre(Pair("p", "nullable"))));
Error message before:
   Actual: { 40-byte object <E8-A5 9C-7F 25-37 00-00 58-7E 51-51 D0-7F 00-00 00-00 00-00 00-00 00-00 01-00 00-00 00-00 00-00 00-DA C7-7F 25-37 00-00> }
After:
   Actual: { ("p", "nonnull") }

It is not ideal that we need to refer directly to DenseMapPair inside the
internal namespace, but I believe the practical maintenance risk is low.
This change is covered by DenseMap's unittests, as we've covered SmallString etc
in the past.

Differential Revision: https://reviews.llvm.org/D153930
2023-06-28 11:29:52 +02:00
..
benchmark [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
unittest [unittest] teach gTest to print entries of DenseMap as pairs 2023-06-28 11:29:52 +02:00
update_benchmark.sh [benchmark] Delete BUILD files 2021-12-14 08:13:21 -08:00