These are detected by gtest as containers, and so previously printed as e.g.
{ '.' (46, 0x2E), 's' (115, 0x73), 'e' (101, 0x65), 'c' (99, 0x63), '0' (48, 0x30) },gtest itself overloads PrintTo for std::string and friends, we use the same mechanism.
Differential D66520
[gtest] Fix printing of StringRef and SmallString in assert messages. Authored by sammccall on Aug 21 2019, 2:57 AM.
Details These are detected by gtest as containers, and so previously printed as e.g. { '.' (46, 0x2E), 's' (115, 0x73), 'e' (101, 0x65), 'c' (99, 0x63), '0' (48, 0x30) },gtest itself overloads PrintTo for std::string and friends, we use the same mechanism.
Diff Detail
Event TimelineComment Actions Thanks for the quick turnaround. This looks good to me. If there's a way to use the regular std::string printer without going through the internal API, then I think it would be better to do that, but what you have here doesn't look too bad either.
| ||||||||||||||||||||||||