MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TestRawBytes

Function TestRawBytes

internal/strings_test.cc:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void 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
133void TestParseString(const std::string& orig) {
134 EXPECT_OK(ParseStringLiteral(orig)) << orig;

Callers 1

TESTFunction · 0.85

Calls 1

Tested by

no test coverage detected