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

Function TestRawString

internal/strings_test.cc:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void 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.

Callers 1

TESTFunction · 0.85

Calls 1

TestQuotedStringFunction · 0.85

Tested by

no test coverage detected