| 117 | } |
| 118 | |
| 119 | void TestRawBytes(const std::string& unquoted) { |
| 120 | const std::string quote = (!absl::StrContains(unquoted, "'")) ? "'" : "\""; |
| 121 | TestQuotedRawBytesLiteral(unquoted, |
| 122 | absl::StrCat("rb", quote, unquoted, quote)); |
| 123 | TestQuotedRawBytesLiteral(unquoted, |
| 124 | absl::StrCat("br", quote, unquoted, quote)); |
| 125 | TestQuotedRawBytesLiteral(unquoted, absl::StrCat("rb'''", unquoted, "'''")); |
| 126 | TestQuotedRawBytesLiteral(unquoted, absl::StrCat("br'''", unquoted, "'''")); |
| 127 | TestQuotedRawBytesLiteral(unquoted, |
| 128 | absl::StrCat("rb\"\"\"", unquoted, "\"\"\"")); |
| 129 | TestQuotedRawBytesLiteral(unquoted, |
| 130 | absl::StrCat("br\"\"\"", unquoted, "\"\"\"")); |
| 131 | } |
| 132 | |
| 133 | void TestParseString(const std::string& orig) { |
| 134 | EXPECT_OK(ParseStringLiteral(orig)) << orig; |
no test coverage detected