| 64 | } |
| 65 | |
| 66 | void TestRawString(const std::string& unquoted) { |
| 67 | const std::string quote = (!absl::StrContains(unquoted, "'")) ? "'" : "\""; |
| 68 | TestQuotedString(unquoted, absl::StrCat("r", quote, unquoted, quote)); |
| 69 | TestQuotedString(unquoted, absl::StrCat("r\"", unquoted, "\"")); |
| 70 | TestQuotedString(unquoted, absl::StrCat("r'''", unquoted, "'''")); |
| 71 | TestQuotedString(unquoted, absl::StrCat("r\"\"\"", unquoted, "\"\"\"")); |
| 72 | } |
| 73 | |
| 74 | // <quoted> is the quoted version of <unquoted> and represents the original |
| 75 | // string mentioned in the test case. |
no test coverage detected